MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / resolveDefault

Method resolveDefault

src/pkg/config/config.ts:126–129  ·  view source on GitHub ↗
(defaultValue: WithAsyncValue<Exclude<T, undefined>>)

Source from the content-addressed store, hash-verified

124 }
125
126 private resolveDefault<T>(defaultValue: WithAsyncValue<Exclude<T, undefined>>): T | Promise<T> {
127 //@ts-ignore
128 return (defaultValue?.asyncValue?.() || defaultValue) as T | Promise<T>;
129 }
130
131 private async transferSyncToLocal<T>(
132 key: SystemConfigKey,

Callers 2

transferSyncToLocalMethod · 0.95
_getMethod · 0.95

Calls 1

asyncValueMethod · 0.80

Tested by

no test coverage detected