From 9afcdd10ed93b5dc877de510f8702213b674a083 Mon Sep 17 00:00:00 2001 From: "A.Yamamoto" <49822810+na2na-p@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:33:45 +0900 Subject: [PATCH] =?UTF-8?q?UserLite.name=E3=81=ABnull=E3=81=8C=E5=85=A5?= =?UTF-8?q?=E3=82=8A=E3=81=86=E3=82=8B=E3=81=AE=E3=82=92=E5=9E=8B=E3=81=A7?= =?UTF-8?q?=E6=98=8E=E7=A4=BA=20(#12073)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * UserLite.nameにnullが入りうるのを型で明示 * ドキュメントの追従 --- packages/misskey-js/etc/misskey-js.api.md | 2 +- packages/misskey-js/src/entities.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md index 54bbfae14..0136df203 100644 --- a/packages/misskey-js/etc/misskey-js.api.md +++ b/packages/misskey-js/etc/misskey-js.api.md @@ -2961,7 +2961,7 @@ type UserLite = { id: ID; username: string; host: string | null; - name: string; + name: string | null; onlineStatus: 'online' | 'active' | 'offline' | 'unknown'; avatarUrl: string; avatarBlurhash: string; diff --git a/packages/misskey-js/src/entities.ts b/packages/misskey-js/src/entities.ts index 659045bd6..50b4a40c4 100644 --- a/packages/misskey-js/src/entities.ts +++ b/packages/misskey-js/src/entities.ts @@ -12,7 +12,7 @@ export type UserLite = { id: ID; username: string; host: string | null; - name: string; + name: string | null; onlineStatus: 'online' | 'active' | 'offline' | 'unknown'; avatarUrl: string; avatarBlurhash: string;