diff --git a/test/fixtures/wait-for-others.ts b/test/fixtures/wait-for-others.ts index 13f5255..a49c4bf 100644 --- a/test/fixtures/wait-for-others.ts +++ b/test/fixtures/wait-for-others.ts @@ -1,10 +1,12 @@ import { threadId } from 'worker_threads' -// @ts-ignore -export default async function ([i32array, n]) { +export default async function ([i32array, n]: [ + array: Int32Array, + num: number +]) { Atomics.add(i32array, 0, 1) Atomics.notify(i32array, 0, Infinity) - let lastSeenValue + let lastSeenValue: number while ((lastSeenValue = Atomics.load(i32array, 0)) < n) { Atomics.wait(i32array, 0, lastSeenValue) }