( schema: S, options?: SchemaAST.ParseOptions )
| 260 | * @since 4.0.0 |
| 261 | */ |
| 262 | export function decodeUnknownEffect<S extends Schema.Constraint>( |
| 263 | schema: S, |
| 264 | options?: SchemaAST.ParseOptions |
| 265 | ): ( |
| 266 | input: unknown, |
| 267 | options?: SchemaAST.ParseOptions |
| 268 | ) => Effect.Effect<S["Type"], SchemaIssue.Issue, S["DecodingServices"]> { |
| 269 | const parser = run<S["Type"], S["DecodingServices"]>(schema.ast) |
| 270 | return withParseOptions(parser, options) |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Creates an effectful decoder for input already typed as the schema's `Encoded` |
no test coverage detected