MCPcopy
hub / github.com/GetBindu/Bindu / ErrorShape

Interface ErrorShape

inbox/src/lib/fetch.ts:14–18  ·  view source on GitHub ↗

Tiny POST-JSON helper used by every form/action site in the UI. * * Why: four components (compose modal, add-agent modal, reply box, * action panel) all did the same fetch + json-with-fallback + error * extraction dance — same shape, slightly different copy. This * centralises: * - the heade

Source from the content-addressed store, hash-verified

12 * Callers get a single `result.errMsg` string that's safe to render. */
13
14interface ErrorShape {
15 ok?: boolean;
16 error?: string;
17 detail?: string;
18}
19
20export interface PostJsonResult<T> {
21 ok: boolean;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected