typescript-vs-flowtype icon indicating copy to clipboard operation
typescript-vs-flowtype copied to clipboard

Differences between Flowtype and TypeScript -- syntax and usability

Results 25 typescript-vs-flowtype issues
Sort by recently updated
recently updated
newest added

Where should I add something like this? TypeScript: ```ts function hello(): never { // ok while(true) {} } ``` Flow: ```js function hello(): empty { // error, void is incompatible...

https://github.com/niieani/typescript-vs-flowtype#conditional-typing You can the same, check this helper: https://gist.github.com/miyaokamarina/934887ac2aff863b9c73283acfb71cf0 ```jsx type $If = $Call< & ((true, Then, Else) => Then) & ((false, Then, Else) => Else), X, Then, Else, >;...

help wanted

Feature from here #20 landed.

I don't know about flow but you forgot to mention an important aspect about TypeScript. Is more than a language, is a language server, similar to LSP (https://github.com/Microsoft/language-server-protocol)) but on...

help wanted

They don't make or break a deal, but a load of those little thing does add up... like: TS: - badass autocomplete with literals https://github.com/Microsoft/TypeScript/issues/13789 Flow: ...

specifying generic parameters during call-time is available https://github.com/facebook/flow/releases/tag/v0.72.0 > Explicit type arguments in new and call expressions, e.g., f(x).

help wanted

Flow 66 improved a lot error messages https://medium.com/flow-type/better-flow-error-messages-for-the-javascript-ecosystem-73b6da948ae2 I think it got better than Typescript

help wanted

Flow: - https://medium.com/@raxwunter/secret-flow-types-86b2ebb30951#.u7j5ieab3 - https://github.com/facebook/flow/blob/master/src/typing/type_annotation.ml#L163 - http://www.saltycrane.com/blog/2016/06/flow-type-cheat-sheet/ - https://twitter.com/nodkz/status/870629967738155010 - https://www.youtube.com/watch?v=WgvAPzOmiP0 - https://qiita.com/coizmo/items/21578b7d13819bb26fc3#_reference-d4f1712e3e2a18b823ef - https://qiita.com/kinzal/items/e1898c89af5618e18334#_reference-afb4a1e9c90d42e7cc28 - https://qiita.com/kinzal/items/8e2978be3ec78663c70b#_reference-5b1da19d077e0f5e7bfe Both: - https://redditblog.com/2017/06/30/why-we-chose-typescript/

We need to update the readme to add the latest features from TS 2.7 and 2.8. Help appreciated!

Once this PR is merged: https://github.com/Microsoft/TypeScript/pull/18654