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
When creating observables from Dexie.Promise objects, I'm encountering TypeScript compile errors such as:
[ts] Argument of type 'Dexie.Promise' is not assignable to parameter of type 'Promise'.
Property '[Symbol.toStringTag]' is missing in type 'Promise'.
Does Dexie.Promise support the property Symbol.toStringTag?
The text was updated successfully, but these errors were encountered:
@ChrisPearce, I've added [Symbol.toStringTag], but unfortunately I think you will continue getting compile error with Observable.fromPromise() since it expects exactly Promise or subclass thereof. Try instead with Observable.fromPromise(Promise.resolve(dexiePromise)).
Looking into it a bit more, Promise in lib.es6.d.ts is an interface, not a class. Of some reason, the declaration of Dexie.Promise in dexie.d.ts is not compatible with that interface. Probably just some other adjustments of dexie.d.ts would need to be done to be fully compatible with Promise in lib.es6.d.ts.
When creating observables from Dexie.Promise objects, I'm encountering TypeScript compile errors such as:
[ts] Argument of type 'Dexie.Promise' is not assignable to parameter of type 'Promise'.
Property '[Symbol.toStringTag]' is missing in type 'Promise'.
Does Dexie.Promise support the property Symbol.toStringTag?
The text was updated successfully, but these errors were encountered: