Interface: Reducer
@kosko/env.Reducer
Describes a step in the variables overriding chain.
Properties
name
• name: string
Name of the reducer.
Defined in
Methods
reduce
▸ reduce(target
, componentName?
): Record
<string
, any
>
Overrides variables for the specified component. If component name is not specified then overrides only global variables.
Parameters
Name | Type |
---|---|
target | Record <string , any > |
componentName? | string |
Returns
Record
<string
, any
>