> not all npm packages are typescript
All Javascript is Typescript isn't it?
All Javascript is Typescript isn't it?
Or to put it another way, JS is only a subset of TS in as far as you're willing to forgo the benefits of TS.
From the docs:
> Typescript is a strict syntactical superset of JavaScript
Typescript contains more than JS. But all JS is valid Typescript.