MCPcopy Create free account
hub / github.com/middleapi/orpc / fallbackConfig

Function fallbackConfig

packages/server/src/config.ts:13–19  ·  view source on GitHub ↗
(key: T, value?: Config[T])

Source from the content-addressed store, hash-verified

11}
12
13export function fallbackConfig<T extends keyof Config>(key: T, value?: Config[T]): Config[T] {
14 if (value === undefined) {
15 return DEFAULT_CONFIG[key]
16 }
17
18 return value
19}

Callers 7

implementerInternalFunction · 0.90
$configMethod · 0.90
$contextMethod · 0.90
inputMethod · 0.90
outputMethod · 0.90
builder.tsFile · 0.90
config.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected