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

Function schemaPersisted

packages/effect/src/unstable/http/Multipart.ts:369–372  ·  view source on GitHub ↗
(
  schema: Schema.ConstraintCodec<A, I, RD, unknown>
)

Source from the content-addressed store, hash-verified

367 * @since 4.0.0
368 */
369export const schemaPersisted = <A, I extends Partial<Persisted>, RD>(
370 schema: Schema.ConstraintCodec<A, I, RD, unknown>
371): (input: unknown, options?: ParseOptions) => Effect.Effect<A, Schema.SchemaError, RD> =>
372 Schema.decodeUnknownEffect(schema)
373
374/**
375 * Creates a decoder for a JSON-encoded field in persisted multipart data.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected