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

Method decoding

packages/effect/src/testing/TestSchema.ts:364–368  ·  view source on GitHub ↗

* Returns a Decoding instance for this schema with helpers for decoding assertions. * * **When to use** * * Use to test how unknown input is decoded into the schema's type. * * **Details** * * Pass `parseOptions` to control error reporting, for example `{ errors: "all

(options?: {
    readonly parseOptions?: SchemaAST.ParseOptions | undefined
  })

Source from the content-addressed store, hash-verified

362 * @stability unstable
363 */
364 decoding(options?: {
365 readonly parseOptions?: SchemaAST.ParseOptions | undefined
366 }) {
367 return new Decoding(this.schema, options)
368 }
369 /**
370 * Returns an {@link Encoding} instance for this schema with helpers for encoding assertions.
371 *

Calls

no outgoing calls

Tested by

no test coverage detected