Skip to content

Functions: withDefault()

ts
function withDefault<TParam>(param, defaultValue): ParamWithDefault<TParam>

Type Parameters

Type Parameter
TParam extends Param

Parameters

ParameterType
paramTParam
defaultValueExtractParamType<TParam, string>

Returns

ParamWithDefault<TParam>