-
-
Notifications
You must be signed in to change notification settings - Fork 666
feat: add install() function to type definitions #4384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add install() function to type definitions #4384
Conversation
Do we really need a separate install.d.ts for a trivial function? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you plese integrate this this in types/index.d.ts
directly? Could you also add a test for this type? We use tsd.
dba3883
to
b2ef8a0
Compare
b2ef8a0
to
de4edaf
Compare
I implemented the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
This relates to...
Rationale
The install function is not available in undici types so when trying to use it in a TS project, we have to add @ts-ignore or similar to be able to use it.
Changes
Adds install function to d.ts
Features
Bug Fixes
Breaking Changes and Deprecations
Status