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
Intended outcome: ObservableMap should implement Map correctly and ObservableSet should implement Set correctly
Actual outcome:
Type 'ObservableMap<unknown, unknown>' is not assignable to type 'Map<unknown, unknown>'.
The types returned by 'entries()' are incompatible between these types.
Type 'IterableIterator<IMapEntry<unknown, unknown>>' is missing the following properties from type 'MapIterator<[unknown, unknown]>': map, filter, take, drop, and 9 more.
Type 'ObservableSet<unknown>' is not assignable to type 'Set<unknown>'.
The types returned by 'entries()' are incompatible between these types.
Type 'IterableIterator<[unknown, unknown]>' is missing the following properties from type 'SetIterator<[unknown, unknown]>': map, filter, take, drop, and 9 more.
Intended outcome:
ObservableMap
should implementMap
correctly andObservableSet
should implementSet
correctlyActual outcome:
How to reproduce the issue:
https://www.typescriptlang.org/play/?target=99&ts=5.6.2#code/JYWwDg9gTgLgBAbzgeQEYGcCmUBuBDVAG0wFk8wAaFDbfIzAZU3gF84AzKCEOAchAioAHrwDcAKHEBjCADt08AcLJgAXHBUAeAK6yA1rIgB3WVV0HjsgHxwAvHFmYj1LLgLEVACgCUE6XIU4JSEmGHVQnX1DExt7R2c0VzpiUJ8JIA
Seems this might be relevant https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#iterator-helper-methods
No errors in Typescript 5.5.x
Versions
mobx@6.13.2
The text was updated successfully, but these errors were encountered: