We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b187f7 + 73b8537 commit 258ba4bCopy full SHA for 258ba4b
1 file changed
src/utils/wrapConstructor.ts
@@ -22,6 +22,8 @@ export function wrapConstructor(Ctor: Function, wrapper: (Ctor: Function, ...arg
22
}
23
24
ConstructorWrapper.prototype = Ctor.prototype;
25
+ Object.defineProperty(ConstructorWrapper, 'name', { writable: true });
26
+ (ConstructorWrapper as any).name = Ctor.name;
27
28
return assignAll(ConstructorWrapper, Ctor, PROPERTY_EXCLUDES);
29
0 commit comments