Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlowTyped Mega Issue #8

Open
rrdelaney opened this issue Jul 6, 2017 · 5 comments
Open

FlowTyped Mega Issue #8

rrdelaney opened this issue Jul 6, 2017 · 5 comments

Comments

@rrdelaney
Copy link
Owner

rrdelaney commented Jul 6, 2017

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

@rrdelaney
Copy link
Owner Author

Created #17 for StringLiteral is not currently supported

@rrdelaney
Copy link
Owner Author

Created #14 for Intersection types is not currently supported

@rrdelaney
Copy link
Owner Author

Created #19 for Type parameter bounds is not currently supported

@stereobooster
Copy link

stereobooster commented Aug 26, 2017

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

@rrdelaney
Copy link
Owner Author

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants