From 99b9cd71cd1ea0858b4821b029538080889e4f55 Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Thu, 29 Oct 2026 21:43:29 +0100 Subject: [PATCH] Type the prompt wrapper's tensor slice for open-ended ranges Co-Authored-By: Claude Opus 5.5 --- src/worker/prompt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/prompt.ts b/src/worker/prompt.ts index c9514f4..a964f83 100644 --- a/src/worker/prompt.ts +++ b/src/worker/prompt.ts @@ -49,7 +49,7 @@ export interface PromptTokenizer { } interface SliceableTensor { - slice(...slices: (number[] | null)[]): unknown; + slice(...slices: ((number | null)[] | null)[]): unknown; } const WRAPPED = Symbol("whisper-web-prompt-support");