( schema: S, options?: SchemaAST.ParseOptions )
| 339 | * @since 3.10.0 |
| 340 | */ |
| 341 | export function decodePromise<S extends Schema.ConstraintDecoder<unknown>>( |
| 342 | schema: S, |
| 343 | options?: SchemaAST.ParseOptions |
| 344 | ): (input: S["Encoded"], options?: SchemaAST.ParseOptions) => Promise<S["Type"]> { |
| 345 | return asPromise(decodeEffect(schema, options)) |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * Creates a synchronous decoder for `unknown` input that reports failure safely |
nothing calls this directly
no test coverage detected