MCPcopy Create free account
hub / github.com/effect-app/libs / decoding

Method decoding

repos/effect/packages/effect/src/testing/TestSchema.ts:216–220  ·  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

214 * @see {@link encoding} for assertions in the opposite direction
215 */
216 decoding(options?: {
217 readonly parseOptions?: SchemaAST.ParseOptions | undefined
218 }) {
219 return new Decoding(this.schema, options)
220 }
221 /**
222 * Returns an {@link Encoding} instance for this schema with helpers for encoding assertions.
223 *

Calls

no outgoing calls

Tested by

no test coverage detected