diff --git a/src/endpoints.ts b/src/endpoints.ts index 152266cf4..e717c4322 100644 --- a/src/endpoints.ts +++ b/src/endpoints.ts @@ -1,8 +1,10 @@ import { Ad, Announcement, Antenna, App, AuthSession, Clip, DriveFile, DriveFolder, GalleryPost, InstanceMetadata, - Note, OriginType, Page, ServerInfo, Stats, TODO, User, UserGroup, UserList, UserSorting + Note, OriginType, Page, ServerInfo, Stats, User, UserGroup, UserList, UserSorting } from './entities'; +type TODO = Record | null; + type ShowUserReq = { username: string; host?: string; } | { userId: User['id']; }; export type Endpoints = { diff --git a/src/entities.ts b/src/entities.ts index ac9fcd3fd..9c4b9250c 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -1,7 +1,7 @@ export type ID = string; export type DateString = string; -export type TODO = Record | null; +type TODO = Record; export type User = { id: ID;