mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Merge pull request #33587 from kettil/master
[jsonwebtoken] set correct type for "expiredAt" in the TokenExpiredError function
This commit is contained in:
Vendored
+4
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user