Skip to content

Conversation

adamjmcgrath
Copy link
Contributor

Description

It's useful to be able to import the error classes, especially for user's of the recently released TypeScript 4.4 which introduces the useUnknownInCatchVariables flag which changes the default type of catch clause variables from any to unknown.

References

fixes #479

@adamjmcgrath adamjmcgrath requested a review from a team as a code owner September 30, 2021 14:57
@vercel
Copy link

vercel bot commented Sep 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/auth0/nextjs-auth0/4j9izP4TyDGPDXKbL1WMuxTzKjrA
✅ Preview: Canceled

@adamjmcgrath adamjmcgrath added the review:small Small review label Sep 30, 2021
@adamjmcgrath adamjmcgrath merged commit d298b02 into main Sep 30, 2021
@adamjmcgrath adamjmcgrath deleted the export-errors branch September 30, 2021 16:07
@adamjmcgrath adamjmcgrath mentioned this pull request Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using HandlerError/AccessTokenError for better error handling with TypeScript
2 participants