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; }[];