Skip to content
Snippets Groups Projects
Commit c7d5da4e authored by syuilo's avatar syuilo
Browse files

define APIError

parent 1cfa30b9
No related branches found
No related tags found
No related merge requests found
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>(
origin: string,
endpoint: E,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment