( schema: S, options?: SchemaAST.ParseOptions )
| 234 | * @since 4.0.0 |
| 235 | */ |
| 236 | export function decodeUnknownEffect<S extends Schema.Constraint>( |
| 237 | schema: S, |
| 238 | options?: SchemaAST.ParseOptions |
| 239 | ): ( |
| 240 | input: unknown, |
| 241 | options?: SchemaAST.ParseOptions |
| 242 | ) => Effect.Effect<S["Type"], SchemaIssue.Issue, S["DecodingServices"]> { |
| 243 | const parser = run<S["Type"], S["DecodingServices"]>(schema.ast) |
| 244 | return options === undefined |
| 245 | ? parser |
| 246 | : (input, overrideOptions) => parser(input, mergeParseOptions(options, overrideOptions)) |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * Creates an effectful decoder for input already typed as the schema's `Encoded` |
no test coverage detected