Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

NodeEnvironment

NodeEnvironment: t.TypeOf<typeof NodeEnvironment>

Variables

Const NodeEnvironment

NodeEnvironment: Type<NodeEnvironmentEnum, NodeEnvironmentEnum, unknown> = ...

A type for describing the node runtime environment

Functions

getNodeEnvironmentFromProcessEnv

  • Resolves the Node environment from the process environment. Defaults to PRODUCTION if no environment is set.

    Parameters

    • env: NodeJS.ProcessEnv = ...

      The environment variables (defaults to process.env)

    • defaultEnv: NodeEnvironment = ...

      The default environment (NodeEnvironmentEnum.PRODUCTION)

    Returns NodeEnvironment

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Enumeration
  • Class with type parameter

Generated using TypeDoc