Skip to content

Commit b9a0319

Browse files
committed
fix: update timer types to NodeJS.Timeout for better type safety
1 parent 7f36b61 commit b9a0319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/CLIDemo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ const terminalContent = ref<HTMLElement | null>(null);
217217
const typedAnswers = ref<Record<number, string>>({});
218218
219219
// Timers
220-
let animationTimer: number | null = null;
221-
let typingTimer: number | null = null;
220+
let animationTimer: NodeJS.Timeout | null = null;
221+
let typingTimer: NodeJS.Timeout | null = null;
222222
223223
// Typing animation
224224
const typeText = (text: string, stepIndex: number, onComplete?: () => void) => {

0 commit comments

Comments
 (0)