diff --git a/src/models/note.ts b/src/models/note.ts index fb739faf90..b4ecd2de4b 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -39,7 +39,7 @@ export type INote = { replyId: mongo.ObjectID; renoteId: mongo.ObjectID; poll: { - choices: choice[] + choices: IChoice[] }; text: string; tags: string[]; @@ -100,7 +100,7 @@ export type INote = { _files?: IDriveFile[]; }; -export type choice = { +export type IChoice = { id: number; text: string; votes: number;