BeechCMS / @beechcms/client / BeechResult
Type Alias: BeechResult<T>
BeechResult<
T> = {data:T;error:null;headers?:Headers; } | {data:null;error:BeechProblem;headers?:Headers; }
Discriminated result — the client NEVER throws on HTTP/validation errors.
Type Parameters
T
T