Skip to content

Commit b140c2c

Browse files
committed
Fix TypeScript build error by adding @types/node dependency
1 parent a17a645 commit b140c2c

5 files changed

Lines changed: 26 additions & 4 deletions

File tree

frontend/package-lock.json

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "markview-pro",
33
"private": true,
4-
"version": "1.4.3",
4+
"version": "1.4.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -24,6 +24,7 @@
2424
"remark-math": "^6.0.0"
2525
},
2626
"devDependencies": {
27+
"@types/node": "^22.10.5",
2728
"@types/react": "^18.3.12",
2829
"@types/react-dom": "^18.3.1",
2930
"@types/react-syntax-highlighter": "^15.5.13",

frontend/package.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
587ec3706bdf3222c8a715324ecd2646
1+
c32391d38434aaa7a8efe86567131b89

frontend/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"noUnusedLocals": true,
1616
"noUnusedParameters": true,
1717
"noFallthroughCasesInSwitch": true,
18+
"types": ["node"],
1819
"baseUrl": ".",
1920
"paths": {
2021
"@/*": ["src/*"]

frontend/wailsjs/go/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export namespace settings {
149149
previewTheme: string;
150150
autoSave: boolean;
151151
autoSaveDelay: number;
152+
autoReload: boolean;
152153
syncScroll: boolean;
153154
showLineNumbers: boolean;
154155
wordWrap: boolean;
@@ -168,6 +169,7 @@ export namespace settings {
168169
this.previewTheme = source["previewTheme"];
169170
this.autoSave = source["autoSave"];
170171
this.autoSaveDelay = source["autoSaveDelay"];
172+
this.autoReload = source["autoReload"];
171173
this.syncScroll = source["syncScroll"];
172174
this.showLineNumbers = source["showLineNumbers"];
173175
this.wordWrap = source["wordWrap"];

0 commit comments

Comments
 (0)