We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 957c36c commit 2cc716bCopy full SHA for 2cc716b
src/EXPORTABLE.ts
@@ -1,6 +1,6 @@
1
-export function EXPORTABLE<T, TScope extends any[]>(
+export function EXPORTABLE<T, TScope extends readonly any[]>(
2
factory: (...args: TScope) => T,
3
- args: [...TScope],
+ args: readonly [...TScope],
4
nameHint?: string
5
): T {
6
const fn: T = factory(...args);
0 commit comments