fix: typecheck

This commit is contained in:
Mar0xy 2023-09-25 05:50:47 +02:00
parent 550d154f19
commit 2b24550ce2
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ namespace MisskeyAPI {
followers_count: u.followersCount, followers_count: u.followersCount,
following_count: u.followingCount, following_count: u.followingCount,
statuses_count: u.notesCount, statuses_count: u.notesCount,
note: u.description ? u.description : '', note: u.description !== null || undefined ? u.description : '',
url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct, url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct,
avatar: u.avatarUrl, avatar: u.avatarUrl,
avatar_static: u.avatarColor, avatar_static: u.avatarColor,

View file

@ -5,7 +5,7 @@ namespace MisskeyEntity {
id: string id: string
name: string name: string
username: string username: string
description: string description?: string
createdAt?: string createdAt?: string
followingCount?: number followingCount?: number
followersCount?: number followersCount?: number