Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Does the given package have TypeScript types?

License

NotificationsYou must be signed in to change notification settings

inspect-js/hastypes

Repository files navigation

github actionscoverageLicenseDownloads

npm badge

Does the given package have TypeScript types?

Inspired byhttps://github.com/ofrobots/typescript-friendly

Example

$ hastypes hastypes# => integrated$ hastypes react@19# => @types/react$ hastypes mdpdf@1# => none
importhasTypesfrom'hastypes';importassertfrom'assert';hasTypes('hastypes').then(x=>assert.equal(x,true));hasTypes('react@19').then(x=>assert.equal(x,'@types/react'));hasTypes('mdpdf@1').then(x=>assert.equal(x,false));

Tests

Simply clone the repo,npm install, and runnpm test


[8]ページ先頭

©2009-2025 Movatter.jp