コンテンツにスキップ

EnvInheritancePredicate

このコンテンツはまだ日本語訳がありません。

EnvInheritancePredicate = (name) => boolean

Defined in: src/core/env.ts:40

Predicate deciding, per variable, whether it is inherited from the parent environment. Receives each parent environment variable name and returns true to inherit it. This gives full control and bypasses the default allowlist entirely — reference DEFAULT_ENV_ALLOWLIST explicitly if you want to build on top of it.

Note: on Windows the name is passed through as-is, so handle case-insensitivity yourself (e.g. compare against name.toUpperCase()).

Parameters

name

string

Returns

boolean