typescript-vs-flowtype
typescript-vs-flowtype copied to clipboard
Differences between Flowtype and TypeScript -- syntax and usability
Added a typescript unique feature: Enums Closes https://github.com/niieani/typescript-vs-flowtype/issues/57
TS: plenty of well maintained typings Flow: a handful of mostly incomplete typings For flow, this may be true for libraries but is an understatement for typings. Maybe this can...
Might worth including in comparison that unlike TypeScript (?), FlowType has extensive linting support through ESLint https://github.com/gajus/eslint-plugin-flowtype plugin.
Flow supports contravariance (`-`), TypeScript doesn't. Also, TypeScript doesn't support covariance (`+`) on all its types, but just some of them.
As mentioned in https://github.com/niieani/typescript-vs-flowtype/issues/16#issuecomment-313326721, it would be great to have single-file and multi-file typechecking performance comparisons.
Moved the section out of TS-only, since both ECMAScript and flow supports it.
Typescript enums feature is very useful. Its much better than literal types in most cases. Its much easier to maintain. Renaming an enum value is possible out of the box,...