Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
types-registry
Advanced tools
A registry of TypeScript declaration file packages published within the @types scope.
The types-registry npm package is a registry of TypeScript declaration file packages published on npm. It is used to manage and provide type definitions for JavaScript libraries, enabling developers to use TypeScript's type-checking features with those libraries.
Accessing Type Definitions
This feature allows you to access the list of all type definitions available in the registry. The code sample demonstrates how to require the types-registry package and log the available type definitions.
const typesRegistry = require('types-registry');
const types = typesRegistry.entries;
console.log(types);
Querying Specific Type Definitions
This feature allows you to query specific type definitions by package name. The code sample shows how to access the type definitions for the 'react' package.
const typesRegistry = require('types-registry');
const specificType = typesRegistry.entries['react'];
console.log(specificType);
tsd is a package manager for TypeScript definition files. It allows you to search, install, and manage TypeScript definitions from the DefinitelyTyped repository. Unlike types-registry, which is a registry of type definitions, tsd is a tool for managing those definitions.
typings is another package manager for TypeScript definition files. It provides a way to install and manage type definitions from various sources, including DefinitelyTyped, npm, and GitHub. It offers more flexibility compared to types-registry, which is focused solely on the registry of type definitions.
This package contains a listing of all packages published to the @types scope on NPM. Generated by types-publisher.
FAQs
A registry of TypeScript declaration file packages published within the @types scope.
The npm package types-registry receives a total of 5,015,231 weekly downloads. As such, types-registry popularity was classified as popular.
We found that types-registry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.