Skip to content

Commit 6dcaa86

Browse files
committed
update typing of arrayify
1 parent 3c246fc commit 6dcaa86

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/crank.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ function arrayify<T>(
2727
? value
2828
: typeof value === "string" ||
2929
typeof (value as any)[Symbol.iterator] !== "function"
30-
? [value]
31-
: // TODO: inference broke in TypeScript 3.9.
32-
[...(value as any)];
30+
? [value as T] : [...value as any];
3331
}
3432

3533
function isIteratorLike(

0 commit comments

Comments
 (0)