* 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
})
| 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 | * |
no outgoing calls
no test coverage detected