Skip to main content

publicEnvironment

Contains environment context and can be used to fetch environment variables.

Hierarchy

  • Pick<ReducerList, setReducers | resetReducers>
    • Environment

Index

Properties

cwd

cwd: string

Current working directory (CWD).

@defaultValue

process.cwd() on Node.js, or / on browsers.

optionalenv

env?: string | string[]

Current environment.

extensions

extensions: string[]

File extensions of environments.

paths

paths: Paths

Path patterns of environment files.

Methods

component

  • component(name: string): any
  • Returns component variables merged with global variables.


    Parameters

    • name: string

      Component name

    Returns any

global

  • global(): any
  • Returns global variables.


    Returns any

resetReducers

  • resetReducers(): void
  • Resets reducer list to the defaults.


    Returns void

setReducers

  • setReducers(callback: (reducers: readonly Reducer[]) => Reducer[]): void
  • Updates reducer list with the return value of callback.


    Parameters

    Returns void