From 5b0de74a0241d531cb4b55ebcfa3cdc546738c80 Mon Sep 17 00:00:00 2001 From: Graziano Statello Date: Thu, 5 Sep 2024 07:35:01 +0200 Subject: [PATCH] Change type DecodedJwt.header into a Record --- src/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index de633e7..82c15f6 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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 payload: any signature: string }