Skip to content

isMissingProviderKeyError

isMissingProviderKeyError(value): value is MissingProviderKeyError

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/providerKeys.ts:86

True when value is a MissingProviderKeyError.

Duck-typed on the marker property rather than instanceof on purpose: a consumer that ends up with two copies of @gaunt-sloth/core on disk (a file: dep, a hoisting split) would fail an instanceof check against a genuinely-correct error and misreport a missing key as a provider outage — the one distinction this error exists to make.

unknown

value is MissingProviderKeyError