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,
following_count: u.followingCount,
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,
avatar: u.avatarUrl,
avatar_static: u.avatarColor,

View File

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