Merge pull request #33587 from kettil/master

[jsonwebtoken] set correct type for "expiredAt" in the TokenExpiredError function
This commit is contained in:
Nathan Shively-Sanders
2019-03-07 16:36:36 -08:00
committed by GitHub
+4 -3
View File
@@ -4,7 +4,8 @@
// Daniel Heim <https://github.com/danielheim>,
// Brice BERNARD <https://github.com/brikou>,
// Veli-Pekka Kestilä <https://github.com/vpk>,
// Daniel Parker <https://github.com/rlgod>
// Daniel Parker <https://github.com/rlgod>,
// Kjell Dießel <https://github.com/kettil>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@@ -17,9 +18,9 @@ export class JsonWebTokenError extends Error {
}
export class TokenExpiredError extends JsonWebTokenError {
expiredAt: number;
expiredAt: Date;
constructor(message: string, expiredAt: number);
constructor(message: string, expiredAt: Date);
}
export class NotBeforeError extends JsonWebTokenError {