Exported API surface of a package
package_apiLook up the real exported API and type signatures of any npm package version from TypeScript declarations. Verify exact names and signatures to avoid inventing APIs.
Instructions
Get the REAL exported API — functions, classes, constants, interfaces, types — of an npm package at a specific version, extracted from its published TypeScript declarations (.d.ts). Reach for this WHENEVER you're about to call into a library and aren't 100% certain a function/option exists with that exact name and signature. It is the antidote to inventing APIs: if it isn't in this list, the package doesn't export it. Grouped by kind, with one-line signatures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | No | Override the .d.ts entry path (e.g. 'dist/index.d.ts') if auto-detection misses it. | |
| package | Yes | npm package name, e.g. 'zod', 'date-fns', '@tanstack/react-query'. | |
| version | No | Exact version or dist-tag (e.g. '3.23.8', 'latest', 'next'). Defaults to 'latest'. |