From 39270c782abfa0e90082dc7a7b5010ad962a93e0 Mon Sep 17 00:00:00 2001
From: marihachi <marihachi0620@gmail.com>
Date: Sun, 23 May 2021 14:56:38 +0900
Subject: [PATCH] fix TODO type

---
 src/endpoints.ts | 4 +++-
 src/entities.ts  | 2 +-
 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;
-- 
GitLab