Skip to content

Commit b0ed922

Browse files
committed
Update TypeScript configuration to exclude test files and refactor AutoSnapshotManager to use number for intervalId instead of NodeJS.Timeout.
1 parent 6280f1a commit b0ed922

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

excalidraw-app/src/lib/autoSnapshot.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ export interface AutoSnapshotConfig {
1111

1212
export class AutoSnapshotManager {
1313
private config: AutoSnapshotConfig;
14-
private intervalId: NodeJS.Timeout | null = null;
14+
private intervalId: number | null = null;
1515
private changeCount = 0;
1616
private lastSaveTime = 0;
17-
private significantChangeThreshold = 10;
1817

1918
constructor(config: AutoSnapshotConfig) {
2019
this.config = config;

excalidraw-app/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@
2121
"noFallthroughCasesInSwitch": true
2222
},
2323
"include": ["src"],
24+
"exclude": [
25+
"src/**/*.test.ts",
26+
"src/**/*.test.tsx",
27+
"src/**/__tests__",
28+
"src/setupTests.ts"
29+
],
2430
"references": [{ "path": "./tsconfig.node.json" }]
2531
}

0 commit comments

Comments
 (0)