Finding typescript types

Created 2022-01-02, Edited 2022-03-12

When integrating third party scripts like google analytics to your typescript project you'll need type definitions.

It turns out typescript @types/somepkg packages are published from the DefinitelyTyped github repo, meaning you can use github search for the types you need!

Example: I need types for google analytics gtag, I go to DefinitelyTyped search "gtag" to find gtag.js which is published on npm as @types/gtag.js.