Skip to main content

Interface: Reducer

@kosko/env.Reducer

Describes a step in the variables overriding chain.

Properties#

name#

name: string

Name of the reducer.

Defined in: packages/env/src/reduce.ts:8

Methods#

reduce#

reduce(target: Record<string, any>, componentName?: string): Record<string, any>

Overrides variables for the specified component. If component name is not specified then overrides only global variables.

Parameters:#

NameType
targetRecord<string, any>
componentName?string

Returns: Record<string, any>

Defined in: packages/env/src/reduce.ts:15