Skip to content

Instantly share code, notes, and snippets.

@kerbyfc
Created July 11, 2018 20:17
Show Gist options
  • Save kerbyfc/b3fb3bc75410e176ce46973d6958f924 to your computer and use it in GitHub Desktop.
Save kerbyfc/b3fb3bc75410e176ce46973d6958f924 to your computer and use it in GitHub Desktop.
Flow VS Typescript

// Flow 0.76 // Typescript

Online playground support:

  • Flow - poor, only by official playground, can't share code
  • Typescript - great

IDE support:

  • Flow - poor, laggy, memory leaks, stuns
  • Typescript - great

Markdown support:

  • Flow - no
  • Typescript - yes

Literal type:

  • Flow - type check need type cast
const test: 'Ha!' = 'Ha!'; 
test === 'WAT?' // no error
test === ('WAT?: 'Ha!'); // works, but OMG its manual!
  • Typescript - works fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment