Field
A schema that can only be an object field, made by optional() or default().
Type Parameters
Section titled “Type Parameters”N extends Native.Top
Properties
Section titled “Properties”
readonlyis: (input) =>input is N["Type"]
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”input is N["Type"]
readonlyparse: (input) =>Effect<N["Type"],ParseError,N["DecodingServices"]>
Checks input and returns it typed, with defaults filled in and unknown object keys removed.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Effect<N["Type"], ParseError, N["DecodingServices"]>
Example
Section titled “Example”const config = yield* Config.parse(JSON.parse(text));schema
Section titled “schema”
readonlyschema:N
The Effect schema underneath, for use with effect/Schema.