(schema: S)
| 73 | * @since 4.0.0 |
| 74 | */ |
| 75 | export function makeOption<S extends Schema.Constraint>(schema: S) { |
| 76 | const parser = makeEffect(schema) |
| 77 | return (input: S["~type.make.in"], options?: Schema.MakeOptions): Option.Option<S["Type"]> => |
| 78 | exitToOption(Effect.runSyncExit(parser(input, options))) |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Creates a synchronous maker for the schema's decoded type side. |
no test coverage detected