refactor(core): add a name to all decorators and other fixes
This commit is contained in:
@ -11,7 +11,5 @@ export function getTypeOf(instance: any /** TODO #9100 */) {
|
||||
}
|
||||
|
||||
export function instantiateType(type: Function, params: any[] = []) {
|
||||
var instance = Object.create(type.prototype);
|
||||
instance.constructor.apply(instance, params);
|
||||
return instance;
|
||||
return new (<any>type)(...params);
|
||||
}
|
||||
|
Reference in New Issue
Block a user