API reference / @localizer/core / configure
Function: configure()
Call Signature
configure<
T>(configurer,values):void
Defined in: fn/configure.ts:30
Configures properties of a single configuration domain.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends Configurer<object> | A function that consumes configuration properties. |
Parameters
| Parameter | Type | Description |
|---|---|---|
configurer | T | Consumer function for the configuration properties. |
values | T extends Configurer<P> ? Partial<P> : never | Configuration values to apply. |
Returns
void
See
Configurer , ConfigurationProperties
Call Signature
configure<
T>(arg,values):void
Defined in: fn/configure.ts:50
Configures properties using their corresponding functions.
Iterates over arg keys and applies values from values to the corresponding functions in arg if a value exists.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends Record<string, Configurer<object>> | A record with string keys and Configurer functions as values. |
Parameters
| Parameter | Type | Description |
|---|---|---|
arg | T | Object with configuration functions. |
values | ConfigurationProperties<T> | Object with values for the configuration functions. |
Returns
void