diff --git a/src/utils/wrapConstructor.ts b/src/utils/wrapConstructor.ts index b967ef4..8285798 100644 --- a/src/utils/wrapConstructor.ts +++ b/src/utils/wrapConstructor.ts @@ -22,6 +22,8 @@ export function wrapConstructor(Ctor: Function, wrapper: (Ctor: Function, ...arg } ConstructorWrapper.prototype = Ctor.prototype; + Object.defineProperty(ConstructorWrapper, 'name', { writable: true }); + (ConstructorWrapper as any).name = Ctor.name; return assignAll(ConstructorWrapper, Ctor, PROPERTY_EXCLUDES); }