1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-16 15:48:19 +09:00

define APIError

This commit is contained in:
syuilo 2021-05-16 11:25:03 +09:00
parent 1cfa30b982
commit c7d5da4ec5

View File

@ -1,5 +1,13 @@
import { Endpoints } from './endpoints'; import { Endpoints } from './endpoints';
export type APIError = {
id: string;
code: string;
message: string;
kind: 'client' | 'server';
info: Record<string, any>;
};
export function request<E extends keyof Endpoints>( export function request<E extends keyof Endpoints>(
origin: string, origin: string,
endpoint: E, endpoint: E,