Skip to content

Commit

Permalink
fix(middleware): export variables type from each index.ts (#2793)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored May 25, 2024
1 parent cc4b2b3 commit f53e3b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/jwt/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { JwtVariables } from './jwt'
export type { JwtVariables }
export { jwt, verify, decode, sign } from './jwt'
import type {} from '../..'

Expand Down
1 change: 1 addition & 0 deletions src/middleware/secure-headers/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export type { ContentSecurityPolicyOptionHandler } from './secure-headers'
export { NONCE, secureHeaders } from './secure-headers'
import type { SecureHeadersVariables } from './secure-headers'
export type { SecureHeadersVariables }

declare module '../..' {
interface ContextVariableMap extends SecureHeadersVariables {}
Expand Down
1 change: 1 addition & 0 deletions src/middleware/timing/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { TimingVariables } from './timing'
export { TimingVariables }
export { timing, setMetric, startTime, endTime } from './timing'

declare module '../..' {
Expand Down

0 comments on commit f53e3b2

Please sign in to comment.