( schema: Schema.Schema<A, I, never>, options?: AST.ParseOptions )
| 541 | * @since 3.10.0 |
| 542 | */ |
| 543 | export const encodeUnknownPromise = <A, I>( |
| 544 | schema: Schema.Schema<A, I, never>, |
| 545 | options?: AST.ParseOptions |
| 546 | ) => { |
| 547 | const parser = encodeUnknown(schema, options) |
| 548 | return (u: unknown, overrideOptions?: AST.ParseOptions): Promise<I> => Effect.runPromise(parser(u, overrideOptions)) |
| 549 | } |
| 550 | |
| 551 | /** |
| 552 | * @category encoding |
nothing calls this directly
no test coverage detected
searching dependent graphs…