-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Flow has shipped a strict_call_arity
flag, which will become the only option as of 0.47.
With this flag enabled, there are issues using the Map
constructor, at a minimum (I haven't tried the other data types).
MCVE:
- using
flow-bin
v0.46 and thestrict_call_arity
flag set - using Immutable 3.8.1
/* @flow */
import { Map } from 'immutable';
const myMap = new Map({ testKey: 'test value' });
resulting in the following error:
testfile.js:26
26: const myMap = new Map({ testKey: 'test value' });
^^^^^^^^^^^^^^^^^^^^^^^^^ unused function argument
v------------------------------------------
34: declare class _Iterable<K, V, KI, II, SI> {
35: static Keyed: KI;
36: static Indexed: II;
...:
187: }
^ default constructor expects no arguments. See: node_modules/immutable/dist/immutable.js.flow:34
philipp-spiess, rsolomon, oriSomething, guicar, villesau and 6 more
Metadata
Metadata
Assignees
Labels
No labels