Skip to content

Commit

Permalink
feat(jwt): make JwtVariables generic for improved type safety (#3428)
Browse files Browse the repository at this point in the history
  • Loading branch information
TinsFox authored Sep 24, 2024
1 parent 8130a67 commit 991a57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/middleware/jwt/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import '../../context'
import type { SignatureAlgorithm } from '../../utils/jwt/jwa'
import type { SignatureKey } from '../../utils/jwt/jws'

export type JwtVariables = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
jwtPayload: any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type JwtVariables<T = any> = {
jwtPayload: T
}

/**
Expand Down

0 comments on commit 991a57b

Please sign in to comment.