MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / migrateConfig

Function migrateConfig

frontend/src/ts/config/utils.ts:17–19  ·  view source on GitHub ↗
(config: PartialConfig | object)

Source from the content-addressed store, hash-verified

15 * @returns
16 */
17export function migrateConfig(config: PartialConfig | object): ConfigSchema {
18 return mergeWithDefaultConfig(sanitizeConfig(replaceLegacyValues(config)));
19}
20
21function mergeWithDefaultConfig(config: PartialConfig): ConfigSchema {
22 const defaultConfig = getDefaultConfig();

Callers 5

getRemoteConfigFunction · 0.90
persistence.tsFile · 0.90
applyConfigFromJsonFunction · 0.90
applyConfigFunction · 0.90
config.spec.tsFile · 0.90

Calls 3

mergeWithDefaultConfigFunction · 0.85
sanitizeConfigFunction · 0.85
replaceLegacyValuesFunction · 0.70

Tested by

no test coverage detected