From ba9482c2e613608865d0d825baf7a3dd5b0e38fa Mon Sep 17 00:00:00 2001 From: loganionian <103104454+loganionian@users.noreply.github.com> Date: Sat, 21 Feb 2026 13:06:10 +0800 Subject: [PATCH] Fix: Adjust ClassConstructor type to use unknown[] instead of any[] Added src/mixin.ts --- src/mixin.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/mixin.ts diff --git a/src/mixin.ts b/src/mixin.ts new file mode 100644 index 0000000000000..184a50fdb0f7e --- /dev/null +++ b/src/mixin.ts @@ -0,0 +1,5 @@ +type ClassConstructor = new(...args: unknown[]) => {}; + +function mixin(Class: C) { + return class extends Class {}; +} \ No newline at end of file