Skip to content

Commit 2cc716b

Browse files
committed
Add missing readonly
1 parent 957c36c commit 2cc716b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EXPORTABLE.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export function EXPORTABLE<T, TScope extends any[]>(
1+
export function EXPORTABLE<T, TScope extends readonly any[]>(
22
factory: (...args: TScope) => T,
3-
args: [...TScope],
3+
args: readonly [...TScope],
44
nameHint?: string
55
): T {
66
const fn: T = factory(...args);

0 commit comments

Comments
 (0)