Skip to content

Commit ec4e2a3

Browse files
authored
Fix TypeScript types for when tsconfig exactOptionalPropertyTypes is enabled (#202)
1 parent e2f5790 commit ec4e2a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/queue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type RunFunction = () => Promise<unknown>;
22

33
export type Queue<Element, Options> = {
44
size: number;
5-
filter: (options: Partial<Options>) => Element[];
5+
filter: (options: Readonly<Partial<Options>>) => Element[];
66
dequeue: () => Element | undefined;
77
enqueue: (run: Element, options?: Partial<Options>) => void;
88
};

0 commit comments

Comments
 (0)