Skip to content

Commit

Permalink
Change type DecodedJwt.header into a Record
Browse files Browse the repository at this point in the history
  • Loading branch information
Akallabet committed Sep 5, 2024
1 parent 10d6475 commit 5b0de74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type SignerCallback = (e: Error | TokenError | null, token: string) => void
type VerifierCallback = (e: Error | TokenError | null, payload: any) => void

type DecodedJwt = {
header: { [key: string]: any }
header: Record<string, any>
payload: any
signature: string
}
Expand Down

0 comments on commit 5b0de74

Please sign in to comment.