File: add-missing-types-for-destructured-function-args.patch

package info (click to toggle)
node-plimit-lit 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 360 kB
  • sloc: sh: 53; javascript: 4; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 605 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Joe Nahmias <joe@nahmias.net>
Date: Thu, 19 Mar 2026 21:31:38 -0400
Subject: add missing types for destructured function args

---
 tests/index.test.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/index.test.ts b/tests/index.test.ts
index 31263d8..6268fdb 100644
--- a/tests/index.test.ts
+++ b/tests/index.test.ts
@@ -50,7 +50,7 @@ describe(`pLimit`, () => {
 		const end = timeSpan();
 		const limit = pLimit(1);
 
-		const mapper = ([value, ms]) =>
+		const mapper = ([value, ms]: [number, number]) =>
 			limit(async () => {
 				await delay(ms);
 				return value;