Skip to content

Commit 6c3adc0

Browse files
committed
chore: change from type assertion to type definition for stronger type checking
1 parent 36574b4 commit 6c3adc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/ts/constants/default-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Config, CustomThemeColors } from "@monkeytype/schemas/configs";
22

3-
const obj = {
3+
const obj: Config = {
44
theme: "serika_dark",
55
themeLight: "serika",
66
themeDark: "serika_dark",
@@ -101,7 +101,7 @@ const obj = {
101101
tapeMargin: 50,
102102
maxLineWidth: 0,
103103
playTimeWarning: "off",
104-
} as Config;
104+
};
105105

106106
export function getDefaultConfig(): Config {
107107
return structuredClone(obj);

0 commit comments

Comments
 (0)