npm Types

Display the TypeScript types status for any npm package.

Show whether a package includes TypeScript types or has types available via DefinitelyTyped.

GET/npm/types/:package.svg

Path Parameters

required
![badge](https://shieldcn.dev/npm/types/react.svg)
badge preview

URL format

/npm/types/{package}.svg

Examples

![types](https://shieldcn.dev/npm/types/react.svg)
![types](https://shieldcn.dev/npm/types/typescript.svg)
![types](https://shieldcn.dev/npm/types/zod.svg)

Type status values

ValueMeaning
bundledPackage includes its own TypeScript definitions
@types/{pkg}Types available via DefinitelyTyped
noneNo TypeScript types available

Styling examples

<!-- Blue theme for TypeScript -->
![types](https://shieldcn.dev/npm/types/react.svg?theme=blue)

<!-- With TypeScript logo -->
![types](https://shieldcn.dev/npm/types/react.svg?logo=typescript)

<!-- Branded variant -->
![types](https://shieldcn.dev/npm/types/zod.svg?variant=branded&logo=typescript)

Data source

Uses registry.npmjs.org. No API key required. Cached 1 hour.