coerceBooleanOrString
coerceBooleanOrString(
value):string|boolean|undefined
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/consoleUtils.ts:334
Convenience wrapper that returns a union directly instead of the tagged result.
Returns:
- boolean when the input is a boolean-like token
- string when the input is non-empty and not a boolean-like token
- undefined when the input is nullish or empty/whitespace
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”string | boolean | undefined