(obj: {})
| 28 | type ActionHandler = (action: string) => unknown; |
| 29 | |
| 30 | function jsToMap(obj: {}) { |
| 31 | if (obj === undefined) { |
| 32 | return Map(); |
| 33 | } |
| 34 | const immutableObj = fromJS(obj); |
| 35 | if (!Map.isMap(immutableObj)) { |
| 36 | throw new Error('Object must be equivalent to a Map.'); |
| 37 | } |
| 38 | return immutableObj; |
| 39 | } |
| 40 | |
| 41 | const knownMetaKeys = Set([ |
| 42 | 'index', |