Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding documentation for the type guard isAxiosError#3767

Merged
jasonsaayman merged 3 commits into
axios:masterfrom
johachi:add-typeguard-documentation
May 4, 2021
Merged

Adding documentation for the type guard isAxiosError#3767
jasonsaayman merged 3 commits into
axios:masterfrom
johachi:add-typeguard-documentation

Conversation

@johachi

@johachi johachi commented Apr 25, 2021

Copy link
Copy Markdown
Contributor

Instructions

Both mentioning the type guard and show a short example of how it can be used. The example uses async/await as I felt it was the most natural way.

I recommend merging this at the same time (or after) merging PR #3546 since it fixes the bug isAxiosError(null) // true.

This (#3645) is also a nice PR that would increase confidence in the type guard.

Closes #3732

@jasonsaayman jasonsaayman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

add isAxiosError to docs

2 participants