From 1fff21423ae89cd3cdfd5c73daeee91a3763112f Mon Sep 17 00:00:00 2001 From: mathe42 <2pi_r2@gmx.de> Date: Sun, 26 May 2024 14:24:51 +0200 Subject: [PATCH] fix types --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1ee14f9..d47ec72 100644 --- a/src/index.ts +++ b/src/index.ts @@ -70,7 +70,7 @@ export function comlink(): Plugin[] { const matches = code.matchAll(workerSearcher); for (const match of matches) { - const index = match.index; + const index = match.index!; const matchCode = match[0]; const c1_new = match[1]; const c2_type = match[2];