withDecodingDefault
constwithDecodingDefault: {<Type>(defaultValue): <Key,Encoded,R>(self) =>PropertySignature<":",Exclude<Type,undefined>,Key,"?:",Encoded,false,R>; <Type,Key,Encoded,R>(self,defaultValue):PropertySignature<":",Exclude<Type,undefined>,Key,"?:",Encoded,false,R>; }
Defined in: node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/dts/Schema.d.ts:1022
Enhances a property signature with a default decoding value.
Call Signature
Section titled “Call Signature”<
Type>(defaultValue): <Key,Encoded,R>(self) =>PropertySignature<":",Exclude<Type,undefined>,Key,"?:",Encoded,false,R>
Enhances a property signature with a default decoding value.
Type Parameters
Section titled “Type Parameters”Type
Parameters
Section titled “Parameters”defaultValue
Section titled “defaultValue”() => NoInfer<Exclude<Type, undefined>>
Returns
Section titled “Returns”<
Key,Encoded,R>(self):PropertySignature<":",Exclude<Type,undefined>,Key,"?:",Encoded,false,R>
Type Parameters
Section titled “Type Parameters”Key extends PropertyKey
Encoded
Section titled “Encoded”Encoded
R
Parameters
Section titled “Parameters”PropertySignature<"?:", Type, Key, "?:", Encoded, false, R>
Returns
Section titled “Returns”PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, false, R>
3.10.0
Call Signature
Section titled “Call Signature”<
Type,Key,Encoded,R>(self,defaultValue):PropertySignature<":",Exclude<Type,undefined>,Key,"?:",Encoded,false,R>
Enhances a property signature with a default decoding 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, false, R>
defaultValue
Section titled “defaultValue”() => NoInfer<Exclude<Type, undefined>>
Returns
Section titled “Returns”PropertySignature<":", Exclude<Type, undefined>, Key, "?:", Encoded, false, R>
3.10.0
3.10.0