mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
15 lines
516 B
TypeScript
15 lines
516 B
TypeScript
// Type definitions for jwt-decode v2.2.0
|
|
// Project: https://github.com/auth0/jwt-decode
|
|
// Definitions by: Giedrius Grabauskas <https://github.com/QuatroDevOfficial/>, Mads Madsen <https://github.com/madsmadsen>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
declare namespace JwtDecode {
|
|
interface JwtDecodeStatic {
|
|
(token: string, options?: { header: boolean }): any;
|
|
}
|
|
}
|
|
|
|
declare var jwtDecode: JwtDecode.JwtDecodeStatic;
|
|
export = jwtDecode;
|
|
export as namespace jwt_decode; |