withDefaults
constwithDefaults: {<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.
Call Signature
Section titled “Call Signature”<
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 Parameters
Section titled “Type Parameters”Type
Parameters
Section titled “Parameters”defaults
Section titled “defaults”constructor
Section titled “constructor”() => Types.NoInfer<Exclude<Type, undefined>>
decoding
Section titled “decoding”() => Types.NoInfer<Exclude<Type, undefined>>
Returns
Section titled “Returns”<
Key,Encoded,R>(self):PropertySignature<":",Exclude<Type,undefined>,Key,"?:",Encoded,true,R>
Type Parameters
Section titled “Type Parameters”Key extends PropertyKey
Encoded
Section titled “Encoded”Encoded
R
Parameters
Section titled “Parameters”PropertySignature<"?:", Type, Key, "?:", Encoded, boolean, R>
Returns
Section titled “Returns”PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>
3.10.0
Call Signature
Section titled “Call Signature”<
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 Parameters
Section titled “Type Parameters”Type
Key extends PropertyKey
Encoded
Section titled “Encoded”Encoded
R
Parameters
Section titled “Parameters”PropertySignature<"?:", Type, Key, "?:", Encoded, boolean, R>
defaults
Section titled “defaults”constructor
Section titled “constructor”() => Types.NoInfer<Exclude<Type, undefined>>
decoding
Section titled “decoding”() => Types.NoInfer<Exclude<Type, undefined>>
Returns
Section titled “Returns”PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, true, R>
3.10.0
3.10.0