Commit 61a4ab0
committed
fix: correct type problem on rest parameter
The error was:
.../types/index.d.ts:9:29 - error TS2370: A rest parameter must be of an array type.
9 type AsyncFunction<A, O> = (...args: A) => Promise<O>;
~~~~~~~~~~
So enforce the parameter to be some kind of array.1 parent 112d462 commit 61a4ab0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments