Skip to content

Commit

Permalink
Add unknown as the default type for the generic
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel de Carvalho Vaz <[email protected]>
  • Loading branch information
Sambego and vazgabriel authored Nov 16, 2020
1 parent f63ad18 commit 53ab806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export interface JwtClaims {
jti?: string;
}

export default function jwtDecode(token: string, options?: JwtDecodeOptions): JwtClaims;
export default function jwtDecode<ReturnType = unknown>(token: string, options?: JwtDecodeOptions): ReturnType;

0 comments on commit 53ab806

Please sign in to comment.