Skip to content

Functions: createParam()

Call Signature

ts
function createParam<TParam>(param): TParam

Type Parameters

Type Parameter
TParam extends Required<ParamGetSet<any>>

Parameters

ParameterType
paramTParam

Returns

TParam

Call Signature

ts
function createParam<TParam>(param): ParamGetSet<ExtractParamType<TParam>>

Type Parameters

Type Parameter
TParam extends Param

Parameters

ParameterType
paramTParam

Returns

ParamGetSet<ExtractParamType<TParam>>

Call Signature

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

Type Parameters

Type Parameter
TParam extends Param

Parameters

ParameterType
paramTParam
defaultValueExtractParamType<TParam, string>

Returns

ParamWithDefault<TParam>