Skip to content
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

fix(index.d.ts): make port option optional #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dev-itsheng
Copy link

In HTTP request, if the port is default (http -> 80, https -> 443), the port of url can be optional.

And in the source code, it also handles scenarios where port is undefined (or not defined).

So I think in this scene the config of port shouldn't be written, and I omit the port property in my own project and it works fine (with the TypeScript error of course).

I changed the definition of package and make it optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant