File: fix-timeout-type.patch

package info (click to toggle)
node-rollup 3.29.5-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 53,544 kB
  • sloc: javascript: 115,081; sh: 32; makefile: 18
file content (16 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: setTimeout return type can change depending on browser/node env
 It typically changed between node 18.13 and node 18.19
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2023-12-12
Forwarded: https://github.com/rollup/rollup/pull/5296
--- a/src/watch/watch.ts
+++ b/src/watch/watch.ts
@@ -35,7 +35,7 @@
 	readonly emitter: RollupWatcher;
 
 	private buildDelay = 0;
-	private buildTimeout: NodeJS.Timer | null = null;
+	private buildTimeout: ReturnType<typeof setTimeout> | null = null;
 	private closed = false;
 	private readonly invalidatedIds = new Map<string, ChangeEvent>();
 	private rerun = false;