Skip to content

Adding documentation for the type guard isAxiosError#3767

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

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

Conversation

@johachi
Copy link
Copy Markdown
Contributor

@johachi johachi commented Apr 25, 2021

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

Copy link
Copy Markdown
Member

@jasonsaayman jasonsaayman left a comment

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