From 1cfa30b9826f3eaa1fc1fa0de456b9b268a636b9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 16 May 2021 11:19:51 +0900 Subject: [PATCH] rename --- src/endpoints.ts | 4 ++-- src/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/endpoints.ts b/src/endpoints.ts index b969db8954..c9f89fd438 100644 --- a/src/endpoints.ts +++ b/src/endpoints.ts @@ -1,4 +1,4 @@ -import { ID, Instance, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './types'; +import { ID, InstanceMetadata, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './types'; type TODO = Record; @@ -48,7 +48,7 @@ export type Endpoints = { // messaging // meta - 'meta': { req: { detail?: boolean; }; res: Instance; }; + 'meta': { req: { detail?: boolean; }; res: InstanceMetadata; }; // miauth diff --git a/src/types.ts b/src/types.ts index 56f998dcad..64124f45b5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -59,7 +59,7 @@ export type Note = { }[]; }; -export type Instance = { +export type InstanceMetadata = { emojis: { category: string; }[];