diff options
| author | おさむのひと <46447427+samunohito@users.noreply.github.com> | 2023-11-21 15:12:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-21 15:12:05 +0900 |
| commit | b5be0e5780453653ca37ea809c36757057a21758 (patch) | |
| tree | c1b0f7db30ff49dbed154fea98a05a4430b776bf /packages/backend/src/models/json-schema/note.ts | |
| parent | update typescript to 5.3 (diff) | |
| download | sharkey-b5be0e5780453653ca37ea809c36757057a21758.tar.gz sharkey-b5be0e5780453653ca37ea809c36757057a21758.tar.bz2 sharkey-b5be0e5780453653ca37ea809c36757057a21758.zip | |
note.tsのchannelを正しい形にしたことにより表出化した型チェックエラーを修正 (#12395)
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/models/json-schema/note.ts')
| -rw-r--r-- | packages/backend/src/models/json-schema/note.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/backend/src/models/json-schema/note.ts b/packages/backend/src/models/json-schema/note.ts index 9d5d558f51..392fa7e1cb 100644 --- a/packages/backend/src/models/json-schema/note.ts +++ b/packages/backend/src/models/json-schema/note.ts @@ -134,11 +134,19 @@ export const packedNoteSchema = { }, name: { type: 'string', - optional: false, nullable: true, + optional: false, nullable: false, + }, + color: { + type: 'string', + optional: false, nullable: false, }, isSensitive: { type: 'boolean', - optional: true, nullable: false, + optional: false, nullable: false, + }, + allowRenoteToExternal: { + type: 'boolean', + optional: false, nullable: false, }, }, }, |