Skip to main content

Function: useTrySetting

useTrySetting<T>(selector): T | undefined

Type parameters

NameType
Tany

Parameters

NameType
selectorstring

Returns

T | undefined

Defined in

onekijs/packages/onekijs-framework/src/core/useTrySetting.ts:4

useTrySetting<T>(selector, defaultValue): T | undefined

Type parameters

NameType
Tany

Parameters

NameType
selectorstring
defaultValueundefined

Returns

T | undefined

Defined in

onekijs/packages/onekijs-framework/src/core/useTrySetting.ts:5

useTrySetting<T>(selector, defaultValue): T | null

Type parameters

NameType
Tany

Parameters

NameType
selectorstring
defaultValuenull

Returns

T | null

Defined in

onekijs/packages/onekijs-framework/src/core/useTrySetting.ts:6

useTrySetting<T>(selector, defaultValue): T

Type parameters

NameType
Tany

Parameters

NameType
selectorstring
defaultValueT

Returns

T

Defined in

onekijs/packages/onekijs-framework/src/core/useTrySetting.ts:7