fix type
This commit is contained in:
parent
14b16b4733
commit
539cf811ec
|
@ -39,9 +39,7 @@ export type INote = {
|
||||||
replyId: mongo.ObjectID;
|
replyId: mongo.ObjectID;
|
||||||
renoteId: mongo.ObjectID;
|
renoteId: mongo.ObjectID;
|
||||||
poll: {
|
poll: {
|
||||||
choices: Array<{
|
choices: choice[]
|
||||||
id: number;
|
|
||||||
}>
|
|
||||||
};
|
};
|
||||||
text: string;
|
text: string;
|
||||||
tags: string[];
|
tags: string[];
|
||||||
|
@ -102,6 +100,12 @@ export type INote = {
|
||||||
_files?: IDriveFile[];
|
_files?: IDriveFile[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type choice = {
|
||||||
|
id: number;
|
||||||
|
text: string;
|
||||||
|
votes: number;
|
||||||
|
};
|
||||||
|
|
||||||
export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => {
|
export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => {
|
||||||
let hide = false;
|
let hide = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue