DefinitelyTyped
DefinitelyTyped is a set of community-maintained types for JavaScript libraries.
Including types in external packages
Types should be contributed to the @definitelytyped/definitions-parser
npm package's allowedPackageJsonDependencies.txt
via a PR to the microsoft/DefinitelyTyped-tools GitHub repository.
While the PR is under review, we can test type definitions locally by adding the necessary packages to node_modules/@definitelytyped/definitions-parser/allowedPackageJsonDependencies.txt
and running the tests with the NODE_ENV
environment variable set to force it to use the offline copy:
NODE_ENV=test npm run test-all