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

Function optionalIntegerConfig

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

Source from the content-addressed store, hash-verified

154 Config.map((value) => Option.getOrUndefined(value)),
155 );
156const optionalIntegerConfig = (name: string): Config.Config<number | undefined> =>
157 Config.int(name).pipe(
158 Config.option,
159 Config.map((value) => Option.getOrUndefined(value)),
160 );
161const OffsetConfig = Config.all({
162 portOffset: optionalIntegerConfig("T3CODE_PORT_OFFSET"),
163 devInstance: optionalStringConfig("T3CODE_DEV_INSTANCE"),

Callers 1

dev-runner.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected