MCPcopy Create free account
hub / github.com/pingdotgg/t3code / optionalBooleanConfig

Function optionalBooleanConfig

scripts/dev-runner.ts:146–150  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

144 Config.map((value) => Option.getOrUndefined(value)),
145 );
146const optionalBooleanConfig = (name: string): Config.Config<boolean | undefined> =>
147 Config.boolean(name).pipe(
148 Config.option,
149 Config.map((value) => Option.getOrUndefined(value)),
150 );
151const optionalPortConfig = (name: string): Config.Config<number | undefined> =>
152 Config.port(name).pipe(
153 Config.option,

Callers 1

dev-runner.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected