From 1ea9adc11b0922cb80d6d72fe7297c4bf3e5f1a6 Mon Sep 17 00:00:00 2001 From: Aikawa Yataro Date: Tue, 12 Dec 2023 12:45:59 +0100 Subject: [PATCH] Fix TS2344 TypeScript error --- source/queue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/queue.ts b/source/queue.ts index bdf30d0..be3316c 100644 --- a/source/queue.ts +++ b/source/queue.ts @@ -2,7 +2,7 @@ export type RunFunction = () => Promise; export type Queue = { size: number; - filter: (options: Partial) => Element[]; + filter: (options: Readonly>) => Element[]; dequeue: () => Element | undefined; enqueue: (run: Element, options?: Partial) => void; };