fetch-npm-types
Retrieve TypeScript type definitions for specified NPM packages, sourced either from the main package or @types/. Supports version and search mode customization for precise type retrieval.
Instructions
指定されたNPMパッケージのTypeScript型定義を取得します。メインパッケージの型定義または@types/パッケージから取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packageName | Yes | NPMパッケージ名(例: 'express', 'react') | |
| searchMode | No | 検索モード: 'main'=メインパッケージのみ, 'types-package'=@types/パッケージのみ, 'search'=両方を検索 | main |
| version | No | バージョン(デフォルト: 'latest') | latest |