Skip to content

isConfigDiscoveryError

isConfigDiscoveryError(value): value is ConfigDiscoveryError

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

True when value is a ConfigDiscoveryError.

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 mis-handle a config failure as an unexpected crash — exactly the distinction this error exists to make.

unknown

value is ConfigDiscoveryError