From ff85376306d28161ecf5eebc48ff45be99304eb5 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 2 May 2023 17:57:56 +0000 Subject: [PATCH] fix --- packages/misskey-js/src/schemas.ts | 2 ++ packages/misskey-js/src/schemas/note.ts | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/misskey-js/src/schemas.ts b/packages/misskey-js/src/schemas.ts index 506627a8d9..93b31c5126 100644 --- a/packages/misskey-js/src/schemas.ts +++ b/packages/misskey-js/src/schemas.ts @@ -76,3 +76,5 @@ export type References = [ ]; export type Packed = FromSchema + +export type PackedNote = Packed<'Note'>; diff --git a/packages/misskey-js/src/schemas/note.ts b/packages/misskey-js/src/schemas/note.ts index 79e93602f9..f92d01f06a 100644 --- a/packages/misskey-js/src/schemas/note.ts +++ b/packages/misskey-js/src/schemas/note.ts @@ -21,7 +21,6 @@ export const packedNoteSchema = { }, text: { type: 'string', - optional: false, nullable: true, }, cw: { oneOf: [{ type: 'string' }, { type: 'null' }], @@ -131,7 +130,6 @@ export const packedNoteSchema = { }, renoteCount: { type: 'number', - optional: false, nullable: false, }, repliesCount: { type: 'number',