Skip to content

withDefaults

const withDefaults: {<Type>(defaults): <Key, Encoded, R>(self) => PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>; <Type, Key, Encoded, R>(self, defaults): PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>; }

Defined in: node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/dts/Schema.d.ts:1044

Enhances a property signature with a default decoding value and a default constructor value.

<Type>(defaults): <Key, Encoded, R>(self) => PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>

Enhances a property signature with a default decoding value and a default constructor value.

Type

() => Types.NoInfer<Exclude<Type, undefined>>

() => Types.NoInfer<Exclude<Type, undefined>>

<Key, Encoded, R>(self): PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>

Key extends PropertyKey

Encoded

R

PropertySignature<"?:", Type, Key, "?:", Encoded, boolean, R>

PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>

3.10.0

<Type, Key, Encoded, R>(self, defaults): PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>

Enhances a property signature with a default decoding value and a default constructor value.

Type

Key extends PropertyKey

Encoded

R

PropertySignature<"?:", Type, Key, "?:", Encoded, boolean, R>

() => Types.NoInfer<Exclude<Type, undefined>>

() => Types.NoInfer<Exclude<Type, undefined>>

PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>

3.10.0

3.10.0