(schema: S)
| 43 | * @since 4.0.0 |
| 44 | */ |
| 45 | export function makeEffect<S extends Schema.Constraint>(schema: S) { |
| 46 | const ast = schema.ast |
| 47 | let entry: CompilerRegistry.Entry | undefined |
| 48 | return (input: S["~type.make.in"], options?: Schema.MakeOptions): Effect.Effect<S["Type"], SchemaIssue.Issue> => |
| 49 | constructEffect<S["Type"]>( |
| 50 | entry ??= CompilerRegistry.resolve(SchemaAST.toType(ast)), |
| 51 | input, |
| 52 | constructorParseOptions(options) |
| 53 | ) |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Creates a synchronous maker that returns `Option.some` with the constructed |
no test coverage detected