Skip to content

Instantly share code, notes, and snippets.

@danvk
Last active November 15, 2020 19:16
Show Gist options
  • Save danvk/f1258a51523830966129a9584e711799 to your computer and use it in GitHub Desktop.
Save danvk/f1258a51523830966129a9584e711799 to your computer and use it in GitHub Desktop.
JS Poland Talk

What is TypeScript?

TypeScript does two things:

  1. Compiles TypeScript to JavaScript ("transpiling").
  2. Performs static type analysis on your code.
async function f() { const funFact = await fetch('http://numbersapi.com/42'); }

Fighting the type checker

If it feels like you're "fighting" the type checker, then you're not using TypeScript well.

There's almost always a better way!

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