(annotations?: Schema.Annotations.Key<T>)
| 385 | * @since 4.0.0 |
| 386 | */ |
| 387 | export function required<T, E extends T = T>(annotations?: Schema.Annotations.Key<T>): Getter<T, E> { |
| 388 | return onNone(() => Effect.fail(new SchemaIssue.MissingKey(annotations))) |
| 389 | } |
| 390 | |
| 391 | /** |
| 392 | * Creates a getter that handles present values (`Option.Some`), passing `None` through. |