* Returns an Encoding instance for this schema with helpers for encoding assertions. * * **When to use** * * Use to test how schema values are encoded into their external form. * * **Details** * * Pass `parseOptions` to control error reporting, for example `{ errors:
(options?: {
readonly parseOptions?: SchemaAST.ParseOptions | undefined
})
| 244 | * @see {@link decoding} for assertions in the opposite direction |
| 245 | */ |
| 246 | encoding(options?: { |
| 247 | readonly parseOptions?: SchemaAST.ParseOptions | undefined |
| 248 | }) { |
| 249 | return new Encoding(this.schema, options) |
| 250 | } |
| 251 | /** |
| 252 | * Returns an object with property-based testing helpers for the schema's arbitrary generator. |
| 253 | * |
no outgoing calls
no test coverage detected