MCPcopy Create free account
hub / github.com/Effect-TS/effect / schema

Function schema

packages/effect/src/unstable/encoding/Msgpack.ts:403–406  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

401 * @since 4.0.0
402 */
403export const schema = <S extends Schema.Constraint>(schema: S): schema<S> =>
404 (Schema.Uint8Array as Schema.instanceOf<Uint8Array<ArrayBuffer>>).pipe(
405 Schema.decodeTo(schema, transformation)
406 )

Callers 1

Transferable.tsFile · 0.50

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected