Skip to content

TypeScript Declarations for NPM Packages

View on Twitter

💡 You can tell if a library ships with @TypeScript type declarations by the icon next to its name in @npmjs

TS = ships with declarations, no need to install types separately
DT = declarations available at @types/... (icon links to declarations package)

Screenshot of Vue package in NPM showing TS icon next to its name with the text: "This package contains built-in TypeScript declarations." Screenshot of Express package in NPM showing DT icon next to its name with the text: "This package has TypeScript declarations provided by @types/express"
You might also like
Easily Test Your .htaccess Rewrite Rules Read tip
Large Node.js Project Example to Learn From Read tip
Secure Your VPS: Disable Password Login Read tip