From 510a1408a2065aa03fd7ff2c72cf30973ec346f0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 17 Oct 2021 17:51:19 +0900 Subject: [PATCH] update Note type --- CHANGELOG.md | 1 + src/entities.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 778764bd9..69454e208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # 0.0.8(wip) - add type definition for `messagingMessage` event to main stream channel +- Update Note type # 0.0.7 - Notificationsの型を修正 diff --git a/src/entities.ts b/src/entities.ts index e47dcdbc6..acce7a733 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -86,8 +86,12 @@ export type Note = { files: DriveFile[]; fileIds: DriveFile['id'][]; visibility: 'public' | 'home' | 'followers' | 'specified'; + visibleUserIds?: User['id'][]; + localOnly?: boolean; myReaction?: string; reactions: Record; + renoteCount: number; + repliesCount: number; poll?: { expiresAt: DateString | null; multiple: boolean; @@ -101,6 +105,8 @@ export type Note = { name: string; url: string; }[]; + uri?: string; + url?: string; }; export type NoteReaction = {