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)?
CodePudding user response:
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.