OptionalSecretConfig.ts overview

An optional secret Config that tells an unset name from one set to an empty or whitespace-only value, which the stock providers both read as absent. It probes the provider’s Record node for the key; the known blind spots are pinned in ConfigEmptyEnv.test.ts.


Exports Grouped by Category


utils

optionalSecret

Config for an opt-in secret: undefined when name is unset, the redacted secret when it is non-empty, and a ConfigError naming name when it is present but empty.

Signature

declare const optionalSecret: (name: string) => Config.Config<Redacted.Redacted | undefined>

Source


This site uses Just the Docs, a documentation theme for Jekyll.