diff --git a/packages/misskey-js/src/schemas.ts b/packages/misskey-js/src/schemas.ts index 506627a8d..93b31c512 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 79e93602f..f92d01f06 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',