Skip to content

Commit

Permalink
Add TypeScript type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Oct 31, 2020
1 parent 320c2e5 commit 1981226
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export class InvalidTokenError extends Error {}

export interface JwtDecodeOptions {
header?: boolean;
}

export default function jwtDecode(token: string, options?: JwtDecodeOptions): unknown;

0 comments on commit 1981226

Please sign in to comment.