mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
514 B
TypeScript
16 lines
514 B
TypeScript
// Type definitions for jwt-decode 2.2
|
|
// Project: https://github.com/auth0/jwt-decode
|
|
// Definitions by: Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>, Mads Madsen <https://github.com/madsmadsen>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace JwtDecode {
|
|
interface Options {
|
|
header: boolean;
|
|
}
|
|
}
|
|
|
|
declare function JwtDecode<TTokenDto>(token: string, options?: JwtDecode.Options): TTokenDto;
|
|
|
|
export = JwtDecode;
|
|
export as namespace jwt_decode;
|