Skip to content

Field

A schema that can only be an object field, made by optional() or default().

N extends Native.Top

readonly is: (input) => input is N["Type"]

unknown

input is N["Type"]


readonly parse: (input) => Effect<N["Type"], ParseError, N["DecodingServices"]>

Checks input and returns it typed, with defaults filled in and unknown object keys removed.

unknown

Effect<N["Type"], ParseError, N["DecodingServices"]>

const config = yield* Config.parse(JSON.parse(text));

readonly schema: N

The Effect schema underneath, for use with effect/Schema.