Comments (3)
I have a diff in progress to make it an error, just needs to be reviewed (internally)
from flow.
I found it surprising and weird that function
(lowercase) can be used as a type. Support for this was added when support for the Function
type was added, back in 2015, but I am not aware of anyone actually using this (or even being aware of this). I would be happy to remove support for this and make this an error.
For now feel free to delete this test case from Prettier.
from flow.
Thanks for the explanation, feel free to close if it not worth to fix.
from flow.
Related Issues (20)
- Flow stops immediately after initial check HOT 2
- Allow type and value with the same name HOT 1
- Internal type checking error under local type inference HOT 2
- Array.prototype.flat returns mixed on nested arrays HOT 2
- Parser: Missing decorators on `PropertyDefinition`
- Predicate functions causing internal typechecking errors HOT 1
- Strange "unconstrained" behavior with React components HOT 5
- Variable of type $Partial<A> does not accept value of type A HOT 1
- Include Hashbang in AST
- Bad error message with underconstrained-implicit-instantiation and function overload HOT 4
- Incorrect node location HOT 2
- Default value seems to be ignored
- Array.prototype.filter on non-refined nullable elements leads to unhelpful error message HOT 2
- Question about union/intersection types AST HOT 3
- Crash when parse hashbang with `{tokens: true}`
- Packages entry points support
- Cannot resolve module node:fs HOT 1
- Record types should refine Object.values HOT 2
- [flow-remove-types] doesn't remove some types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow.