Skip to content

Commit ba9482c

Browse files
committed
Fix: Adjust ClassConstructor type to use unknown[] instead of any[]
Added src/mixin.ts
1 parent 3472548 commit ba9482c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mixin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type ClassConstructor = new(...args: unknown[]) => {};
2+
3+
function mixin<C extends ClassConstructor>(Class: C) {
4+
return class extends Class {};
5+
}

0 commit comments

Comments
 (0)