sindresorhus/pify












The issue has been solved
Add TypeScript type definition #74
sindresorhus posted onGitHub
Would be nice to have TypeScript type definitions bundled in this package. The types should be strict and should be generic so it preserves the original function type.
The type definition should follow this styleguide, and should have full docs and type tests.
Some examples:
- https://github.com/sindresorhus/semver-regex/commit/039944bb5b3876913171b895488874b5c200e458
- https://github.com/sindresorhus/global-dirs/commit/0aae4d64887f77af94c4fb7ca12aa9f93c0a8291
- https://github.com/sindresorhus/md5-hex/commit/bbbfeff840f26973fbffc16d4863ae6d120079f3
Note that this is not an easy task and requires you to have advanced TypeScript experience. There have been multiple attempts and a lot of wasted time on my part in the past. If you intend to work on this, please look at the previous attempts and the feedback given there.
Fund this Issue
Rewarded pull request
Add TypeScript definitions #86submitted bytom-sherman(67)
Other pull requests
Add index.d.ts and tests #76submitted bychinesedfan(156)
Add TypeScript definition #85submitted bystroncium(1,114)
Click to copy link
Recent activities