From b197045e3fca89d47f2b14a4c950553437b98956 Mon Sep 17 00:00:00 2001 From: maxmcd Date: Tue, 30 Apr 2024 22:11:20 -0400 Subject: [PATCH] Add default value for options --- src/DenoHTTPWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DenoHTTPWorker.ts b/src/DenoHTTPWorker.ts index ef1b1a7..0b5f791 100644 --- a/src/DenoHTTPWorker.ts +++ b/src/DenoHTTPWorker.ts @@ -65,7 +65,7 @@ export interface DenoWorkerOptions { export const newDenoHTTPWorker = async ( script: string | URL, - options?: Partial + options: Partial = {} ): Promise => { const _options: DenoWorkerOptions = { denoExecutable: "deno",