diff options
| author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2022-12-18 13:13:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-18 13:13:05 +0900 |
| commit | bb3d274db64fe662ad01780ca5eadbc263f6f759 (patch) | |
| tree | 2fcd6dfb55cabad77441a6d3cdb2ef5fbec075e2 /packages/client/src/scripts/array.ts | |
| parent | Remove redundant ts-node things (#9335) (diff) | |
| download | sharkey-bb3d274db64fe662ad01780ca5eadbc263f6f759.tar.gz sharkey-bb3d274db64fe662ad01780ca5eadbc263f6f759.tar.bz2 sharkey-bb3d274db64fe662ad01780ca5eadbc263f6f759.zip | |
refactor(client): add proper types to `never[]` (#9340)
Diffstat (limited to 'packages/client/src/scripts/array.ts')
| -rw-r--r-- | packages/client/src/scripts/array.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/client/src/scripts/array.ts b/packages/client/src/scripts/array.ts index 26c6195d66..4620c8b735 100644 --- a/packages/client/src/scripts/array.ts +++ b/packages/client/src/scripts/array.ts @@ -123,7 +123,7 @@ export function lessThan(xs: number[], ys: number[]): boolean { * Returns the longest prefix of elements that satisfy the predicate */ export function takeWhile<T>(f: Predicate<T>, xs: T[]): T[] { - const ys = []; + const ys: T[] = []; for (const x of xs) { if (f(x)) { ys.push(x); |