You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__extends() currently use the normal property access syntax to copy static properties which means it will copy the result of the getter to the sub-class instead of the getter itself.
It should do something like this if ES5 is supported:
var FUN_PROTO_NAMES = Object.getOwnPropertyNames(Function);
export function copyStatic(from: Function, to: Function) {
Object.getOwnPropertyNames(from).forEach(p => {
if (FUN_PROTO_NAMES.indexOf(p) === -1) {
Object.defineProperty(to, p, Object.getOwnPropertyDescriptor(from, p));
}
});
}
The text was updated successfully, but these errors were encountered:
__extends()
currently use the normal property access syntax to copy static properties which means it will copy the result of the getter to the sub-class instead of the getter itself.It should do something like this if ES5 is supported:
The text was updated successfully, but these errors were encountered: