Skip to content

Commit

Permalink
Fix TypeScript types for when tsconfig exactOptionalPropertyTypes i…
Browse files Browse the repository at this point in the history
…s enabled (#202)
  • Loading branch information
aikawayataro committed Dec 14, 2023
1 parent e2f5790 commit ec4e2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type RunFunction = () => Promise<unknown>;

export type Queue<Element, Options> = {
size: number;
filter: (options: Partial<Options>) => Element[];
filter: (options: Readonly<Partial<Options>>) => Element[];
dequeue: () => Element | undefined;
enqueue: (run: Element, options?: Partial<Options>) => void;
};

0 comments on commit ec4e2a3

Please sign in to comment.