MCPcopy Index your code
hub / github.com/Effect-TS/effect / decodeData

Function decodeData

packages/effect/src/Schema.ts:8391–8392  ·  view source on GitHub ↗
(a: A)

Source from the content-addressed store, hash-verified

8389}
8390
8391const decodeData = <A extends Readonly<Record<string, unknown>> | ReadonlyArray<unknown>>(a: A): A =>
8392 Array.isArray(a) ? data_.array(a) : data_.struct(a)
8393
8394const dataArbitrary = <A extends Readonly<Record<string, unknown>> | ReadonlyArray<unknown>>(
8395 item: LazyArbitrary<A>

Callers 1

DataFunction · 0.85

Calls 1

arrayMethod · 0.80

Tested by

no test coverage detected