fix
This commit is contained in:
parent
ef15b9c0d3
commit
ff85376306
2 changed files with 2 additions and 2 deletions
|
@ -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'>;
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue