From: Chris Duncan Date: Thu, 24 Jul 2025 14:00:21 +0000 (-0700) Subject: On second thought, just specify the type of array instead of messing with its contents. X-Git-Tag: v0.10.5~54^2~4 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=801768373c4b1f200c2fe3c0fe8614983a925f88;p=libnemo.git On second thought, just specify the type of array instead of messing with its contents. --- diff --git a/test/GLOBALS.mjs b/test/GLOBALS.mjs index af65f7f..dceaab2 100644 --- a/test/GLOBALS.mjs +++ b/test/GLOBALS.mjs @@ -4,11 +4,14 @@ export { env } from '../env.mjs' /** - * Serially executes asynchronous functions. - */ +* Serially executes asynchronous functions. +*/ const queue = { isIdle: true, - tasks: [{}], + /** + * @type {{ task:Function, resolve:Function, reject: Function, args: any[]}[]} + */ + tasks: [], process: function () { const next = queue.tasks.shift() @@ -35,7 +38,6 @@ const queue = { }) } } -queue.process() export const isNode = globalThis !== globalThis.window