Function: useSetting
▸ useSetting<T
>(selector
): T
| undefined
Type parameters
Name | Type | Description |
---|---|---|
T | any | the type of the entry identified by selector in settings.ts Example: useSetting<string>('server.baseUrl'); |
Parameters
Name | Type | Description |
---|---|---|
selector | string | The key. Example server.baseUrl |
Returns
T
| undefined
Defined in
onekijs/packages/onekijs-framework/src/app/useSetting.ts:19
▸ useSetting<T
>(selector
, defaultValue
): T
| undefined
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
selector | string |
defaultValue | undefined |
Returns
T
| undefined
Defined in
onekijs/packages/onekijs-framework/src/app/useSetting.ts:20
▸ useSetting<T
>(selector
, defaultValue
): T
| null
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
selector | string |
defaultValue | null |
Returns
T
| null
Defined in
onekijs/packages/onekijs-framework/src/app/useSetting.ts:21
▸ useSetting<T
>(selector
, defaultValue
): T
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
selector | string |
defaultValue | T |
Returns
T
Defined in
onekijs/packages/onekijs-framework/src/app/useSetting.ts:22