From 53ab806de35befa874437ebdba96cf8d6d1bd994 Mon Sep 17 00:00:00 2001 From: Sam Bellen Date: Mon, 16 Nov 2020 11:03:53 +0100 Subject: [PATCH] Add unknown as the default type for the generic Co-authored-by: Gabriel de Carvalho Vaz --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 078ff11..ff0ef87 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,4 +14,4 @@ export interface JwtClaims { jti?: string; } -export default function jwtDecode(token: string, options?: JwtDecodeOptions): JwtClaims; +export default function jwtDecode(token: string, options?: JwtDecodeOptions): ReturnType;