diff --git a/src/api.ts b/src/api.ts index 87f862994e..103aa5d890 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,5 +1,13 @@ import { Endpoints } from './endpoints'; +export type APIError = { + id: string; + code: string; + message: string; + kind: 'client' | 'server'; + info: Record; +}; + export function request( origin: string, endpoint: E,