( schema: S, options?: SchemaAST.ParseOptions )
| 1826 | * @since 3.10.0 |
| 1827 | */ |
| 1828 | export function decodeUnknownPromise<S extends ConstraintDecoder<unknown>>( |
| 1829 | schema: S, |
| 1830 | options?: SchemaAST.ParseOptions |
| 1831 | ) { |
| 1832 | const parser = decodeUnknownEffect(schema, options) |
| 1833 | return (input: unknown, options?: SchemaAST.ParseOptions): Promise<S["Type"]> => { |
| 1834 | return runSchemaErrorPromise(parser(input, options)) |
| 1835 | } |
| 1836 | } |
| 1837 | |
| 1838 | /** |
| 1839 | * Decodes a typed input (the schema's `Encoded` type) against a schema, |
no test coverage detected