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 a new map and making it observable using the function, the returned type is of a map without specifying the key type, or
Actual outcome:
The type of the key is "lost", and the type of the value is converted to V|undefined. - Or when not giving an initial value to the map the type of the value is just V
How to reproduce the issue:
The following line to a store, or anywhere (ps: how can I create a flow test on codesandbox?): const someMap: ObservableMap<number, string> = observable(new Map());
Intended outcome:
When creating a new map and making it observable using the function, the returned type is of a map without specifying the key type, or
Actual outcome:
The type of the key is "lost", and the type of the value is converted to
V|undefined
. - Or when not giving an initial value to the map the type of the value is justV
How to reproduce the issue:
The following line to a store, or anywhere (ps: how can I create a flow test on codesandbox?):
const someMap: ObservableMap<number, string> = observable(new Map());
Some extra discovery:
This seems to be due line 254 of mobx.js.flow:
Versions
mobx: 5.15.3
flow: 0.124
The text was updated successfully, but these errors were encountered: