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

Function resetConfig

frontend/src/ts/config/lifecycle.ts:113–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113export async function resetConfig(): Promise<void> {
114 await applyConfig(getDefaultConfig());
115 await deleteConfig();
116 saveFullConfigToLocalStorage(true);
117}
118
119const { promise: configLoadPromise, resolve: loadDone } =
120 promiseWithResolvers();

Callers 3

showResetAccountModalFunction · 0.90
SettingsPageFunction · 0.90
loadFromLocalStorageFunction · 0.85

Calls 4

getDefaultConfigFunction · 0.90
deleteConfigFunction · 0.90
applyConfigFunction · 0.70

Tested by

no test coverage detected