This commit is contained in:
tamaina 2023-05-02 17:57:56 +00:00
parent ef15b9c0d3
commit ff85376306
2 changed files with 2 additions and 2 deletions

View file

@ -76,3 +76,5 @@ export type References = [
]; ];
export type Packed<T extends keyof typeof refs> = FromSchema<typeof refs[T], { references: References }> export type Packed<T extends keyof typeof refs> = FromSchema<typeof refs[T], { references: References }>
export type PackedNote = Packed<'Note'>;

View file

@ -21,7 +21,6 @@ export const packedNoteSchema = {
}, },
text: { text: {
type: 'string', type: 'string',
optional: false, nullable: true,
}, },
cw: { cw: {
oneOf: [{ type: 'string' }, { type: 'null' }], oneOf: [{ type: 'string' }, { type: 'null' }],
@ -131,7 +130,6 @@ export const packedNoteSchema = {
}, },
renoteCount: { renoteCount: {
type: 'number', type: 'number',
optional: false, nullable: false,
}, },
repliesCount: { repliesCount: {
type: 'number', type: 'number',