- Notifications
You must be signed in to change notification settings - Fork0
Does the given package have TypeScript types?
License
NotificationsYou must be signed in to change notification settings
inspect-js/hastypes
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Does the given package have TypeScript types?
Inspired byhttps://github.com/ofrobots/typescript-friendly
$ 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));
Simply clone the repo,npm install
, and runnpm test
About
Does the given package have TypeScript types?