Mirror of static site repo git.pfy.ch/pfych/static
Something went wrong. Try again.
1234567891011121314151617181920212223export interface JsonApiSuccess< Type extends string, Attributes extends Record<any, any> | undefined,> { data: { id: string; type: Type; attributes: Attributes }[];}
export interface JsonApiError { errors: { status: string; title: string; detail: string; source: { pointer: string; }; }[];}
export type JsonApiResponse< Type extends string, Attributes extends Record<any, any> | undefined,> = JsonApiSuccess<Type, Attributes> | JsonApiError;