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
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:
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.
When running through dgeni, this results in an unresolved TypeScript symbol:
The syntax for the generic type on the promise is super weird, but is correct (and does work exactly as intended).
The text was updated successfully, but these errors were encountered: