( schema: S, options?: SchemaAST.ParseOptions )
| 621 | * @since 4.0.0 |
| 622 | */ |
| 623 | export function encodeUnknownEffect<S extends Schema.Constraint>( |
| 624 | schema: S, |
| 625 | options?: SchemaAST.ParseOptions |
| 626 | ): ( |
| 627 | input: unknown, |
| 628 | options?: SchemaAST.ParseOptions |
| 629 | ) => Effect.Effect<S["Encoded"], SchemaIssue.Issue, S["EncodingServices"]> { |
| 630 | const parser = run<S["Encoded"], S["EncodingServices"]>(SchemaAST.flip(schema.ast)) |
| 631 | return withParseOptions(parser, options) |
| 632 | } |
| 633 | |
| 634 | /** |
| 635 | * Creates an effectful encoder for input already typed as the schema's decoded |
no test coverage detected