MCPcopy Index your code
hub / github.com/CapSoftware/Cap / decode

Function decode

apps/mobile/src/api/mobile.ts:69–72  ·  view source on GitHub ↗
(
	schema: Schema.Schema<A, I, never>,
	value: unknown,
)

Source from the content-addressed store, hash-verified

67const trimBaseUrl = (baseUrl: string) => baseUrl.replace(/\/+$/, "");
68
69const decode = async <A, I>(
70 schema: Schema.Schema<A, I, never>,
71 value: unknown,
72): Promise<A> => Schema.decodeUnknownPromise(schema)(value);
73
74const appendQuery = (
75 url: URL,

Callers 4

decodeSessionTokenFunction · 0.85
requestFunction · 0.85
publicRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected