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

Function optionalStringConfig

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

Source from the content-addressed store, hash-verified

139export const isDevRunnerError = Schema.is(DevRunnerError);
140
141const optionalStringConfig = (name: string): Config.Config<string | undefined> =>
142 Config.string(name).pipe(
143 Config.option,
144 Config.map((value) => Option.getOrUndefined(value)),
145 );
146const optionalBooleanConfig = (name: string): Config.Config<boolean | undefined> =>
147 Config.boolean(name).pipe(
148 Config.option,

Callers 1

dev-runner.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected