MCPcopy
hub / github.com/infinitered/ignite / boolFlag

Function boolFlag

src/tools/flag.ts:20–23  ·  view source on GitHub ↗
(option: unknown)

Source from the content-addressed store, hash-verified

18 * while preserving `undefined` values as `undefined` instead of `false`.
19 */
20export function boolFlag(option: unknown): boolean | undefined {
21 if (option === undefined) return undefined
22 return bool(option)
23}

Callers 10

renameReactNativeAppFunction · 0.90
replaceMaestroBundleIdsFunction · 0.90
createGeneratorTemplateFunction · 0.90
updateExpoRouterSrcDirFunction · 0.90
generateFunction · 0.90
remove-demo.tsFile · 0.90
new.tsFile · 0.90

Calls 1

boolFunction · 0.85

Tested by

no test coverage detected