Small correction in the DefaultValues part of the Optional fields section
parischap opened this issue Β· comments
π Documentation
I think this line:
const schema = S.struct({ a. S.optional(S.number).withDefault(() => 0) });
should be replaced by:
const schema = S.struct({ a: S.optional(S.number).withDefault(() => 0) });