Skip to content

Commit

Permalink
chore(express): Expose AuthObject type helper (#4416)
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano authored Oct 28, 2024
1 parent c2f5071 commit 1b78bb3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twelve-frogs-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/express": patch
---

Expose `AuthObject` type helper
9 changes: 9 additions & 0 deletions packages/express/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { AuthObject } from '@clerk/backend';

declare global {
namespace Express {
interface Request {
auth: AuthObject;
}
}
}
4 changes: 3 additions & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@
"default": "./dist/index.js"
}
},
"./env": "./env.d.ts",
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"files": [
"dist"
"dist",
"env.d.ts"
],
"scripts": {
"build": "npm run clean && tsup",
Expand Down

0 comments on commit 1b78bb3

Please sign in to comment.