Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why type definitions in npm are placed into @types namespace?

Why type definitions in npm are placed into @types namespace which is not related to a concrete organization/user/lib? Why npm libraries haven't types in @[orgname/username/libname]/types (under an org/user/project namespace)?

like image 316
pepeevich Avatar asked Dec 05 '25 16:12

pepeevich


1 Answers

This is the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped).

It's a third party project, with the NPM organization "@types". Its contributors create, maintain, and host type definition files for projects that don't want to write their source code in TypeScript or don't want to publish type definition files themselves.

like image 183
Matt Welke Avatar answered Dec 08 '25 04:12

Matt Welke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!