summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarihachi <marihachi0620@gmail.com>2021-05-23 14:56:38 +0900
committermarihachi <marihachi0620@gmail.com>2021-05-23 14:56:38 +0900
commit39270c782abfa0e90082dc7a7b5010ad962a93e0 (patch)
treec9422795b39497a1ca8eabf558b66f786374e80b
parentfix TODO type (diff)
downloadmisskey-39270c782abfa0e90082dc7a7b5010ad962a93e0.tar.gz
misskey-39270c782abfa0e90082dc7a7b5010ad962a93e0.tar.bz2
misskey-39270c782abfa0e90082dc7a7b5010ad962a93e0.zip
fix TODO type
-rw-r--r--src/endpoints.ts4
-rw-r--r--src/entities.ts2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/endpoints.ts b/src/endpoints.ts
index 152266cf4e..e717c43223 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<string, any> | null;
+
type ShowUserReq = { username: string; host?: string; } | { userId: User['id']; };
export type Endpoints = {
diff --git a/src/entities.ts b/src/entities.ts
index ac9fcd3fd6..9c4b9250c9 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<string, any> | null;
+type TODO = Record<string, any>;
export type User = {
id: ID;