FlowTyped Mega Issue
Heres a list of the most common issues when compiling libraries from FlowTyped:
34 Exists type is not currently supported
20 Type parameter bounds is not currently supported
18 SYNTAX ERROR
17 Intersection types is not currently supported
16 Import statements is not currently supported
15 Unknown declaration when converting a module property declaration
13 static CallProperty on Object types is not currently supported
12 Indexer on Object types is not currently supported
10 Inheriting in interfaces is not currently supported
9 Unknown declaration type when converting a module declaration
7 Cannot use string literal outside the context of a union type
7 Typeof can only operate on variable declarations
5 Inheritance not supported
4 Built-in type $Exports is not currently supported
3 React components is not currently supported
3 Class declatations is not currently supported
3 Built-in type $Subtype is not currently supported
2 Unknown identifier
2 Built-in type $Shape is not currently supported
2 Type parameter variance is not currently supported
1 undefined
1 Built-in type $PropertyType is not currently supported
1 typeof can only operate on classes
Starting from the top these are the biggest problems we face right now.
How to generate this report: npm run test:collect && node docs/find-error.js
Created #17 for StringLiteral is not currently supported
Created #14 for Intersection types is not currently supported
Created #19 for Type parameter bounds is not currently supported
Also want to note you that if somebody unfamiliar with flow-typed want to use it, we need to put a bit more documentation, like:
npm install -g reasonably-typed
npm install -g flow-typed
npm install --save-dev flow-bin
touch .flowconfig
flow-typed install [email protected]
retyped compile --flow-typed
@stereobooster This issue is more about what the top issues compiling definitions from FlowTyped are 🙂 If you want to help out with the docs that'd be awesome, or even better add a mode to automatically download and compile from FlowTyped!