Skip to content

Commit 8ed2ddc

Browse files
committed
Use an interface for the landing test double
1 parent 96403d1 commit 8ed2ddc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/tui/landing.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ const LANDING_IDLE_REPAINT_INTERVAL_MS = 125;
5959
const SNOW_SAMPLE_CLOCKS_MS = [0, 1500, 3000, 4500, 6000, 7500] as const;
6060
const stripSnow = (text: string) => text.replaceAll(SNOW_CHAR, " ");
6161

62-
type IdleTimerHandle = { unref?: () => void };
62+
interface IdleTimerHandle {
63+
unref?: () => void;
64+
}
6365

6466
function wrapLandingIdleTimer(): {
6567
armed: IdleTimerHandle[];

0 commit comments

Comments
 (0)