diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-01-19 02:26:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 03:26:39 +0100 |
commit | b12afdb89a989e7d78389bd5289488d86202bb4e (patch) | |
tree | 945c2c848e79d41d0e893211810f1e3fe37917e6 /cli/tests/workers_test.ts | |
parent | f43855cead0a52b888018867f7f3cd439d5944d8 (diff) |
feat: Add WorkerOptions interface to type declarations (#9147)
Diffstat (limited to 'cli/tests/workers_test.ts')
-rw-r--r-- | cli/tests/workers_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tests/workers_test.ts b/cli/tests/workers_test.ts index 66444411e..1fe8b4538 100644 --- a/cli/tests/workers_test.ts +++ b/cli/tests/workers_test.ts @@ -113,9 +113,10 @@ Deno.test({ name: "worker globals", fn: async function (): Promise<void> { const promise = deferred(); + const workerOptions: WorkerOptions = { type: "module" }; const w = new Worker( new URL("workers/worker_globals.ts", import.meta.url).href, - { type: "module" }, + workerOptions, ); w.onmessage = (e): void => { assertEquals(e.data, "true, true, true"); |