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
{{ message }}
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
This is admittedly a particularly bizzarre example of TypeScript syntax, but it's our current workaround for some TypeScript limitations with subclassing ES6 built-ins.
// Our hacky helper function:functionsafeSubclass<T>(klasstype : T) : T{// Bunch of stuff to use Reflect.construct, but essentially:returnklasstype;}// Our subclass:classMyPromise<T>extendssafeSubclass(Promise)<T>{/* ... */}
When running through dgeni, this results in an unresolved TypeScript symbol: