Skip to content

fix: exporting missing exports in type definition index.d.ts - #5003

Merged
jasonsaayman merged 1 commit into
axios:v1.xfrom
trim21:fix/type
Oct 5, 2022
Merged

jasonsaayman merged 1 commit into
axios:v1.xfrom
trim21:fix/type

Conversation

@trim21

@trim21 trim21 commented Oct 5, 2022 •

Copy link
Copy Markdown
Contributor

close #5001

index.d.ts exports class Axios, AxiosHeaders, AxiosError, CanceledError, but they are not exported in runtime code.

@trim21 trim21 changed the title fix: exporting missing exports in types index.d.ts fix: exporting missing exports in type definition index.d.ts Oct 5, 2022
@arthurfiorette

arthurfiorette commented Oct 5, 2022 •

Copy link
Copy Markdown
Contributor

Should this PR also export everything that axios v0 used to export? Maybe also add the newly exported AxiosHeaders class... i didn't saw it :)

@trim21

trim21 commented Oct 5, 2022

Copy link
Copy Markdown
Contributor Author

AxiosHeaders is already added to exports in this PR.

@trim21

trim21 commented Oct 5, 2022

Copy link
Copy Markdown
Contributor Author

Should this PR also export everything that axios v0 used to export? Maybe also add the newly exported AxiosHeaders class...

Just checkout v0, it exports Axios, AxiosError, CanceledError, so also already done.

@jasonsaayman

Copy link
Copy Markdown
Member

I will release 1.0.1 tonight with this change and anything else that is crucial.

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.

1.0.0 wrong type definition, class AxiosError is not exported

3 participants