Skip to content

Commit

Permalink
fix(tanstack-start): Export error helpers form @clerk/clerk-react
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper authored Dec 9, 2024
1 parent 2657437 commit 799bb4e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/tanstack-start/errors/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"main": "../dist/errors.js",
"types": "../dist/errors.d.ts"
}
5 changes: 5 additions & 0 deletions packages/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@
"types": "./dist/server/index.d.ts",
"default": "./dist/server/index.js"
},
"./errors": {
"types": "./dist/errors.d.ts",
"default": "./dist/errors.js"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"errors",
"server"
],
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/tanstack-start/src/errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export {
isClerkAPIResponseError,
isEmailLinkError,
isKnownError,
isMetamaskError,
EmailLinkErrorCode,
} from '@clerk/clerk-react/errors';

0 comments on commit 799bb4e

Please sign in to comment.