chore: added typings (#157)

This commit is contained in:
Thomas Klein
2019-10-04 14:56:20 +02:00
committed by Priscila Oliveira
parent f84fd79c5b
commit 61a400fbd8
7 changed files with 37 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ interface PayloadInterface {
exp: number;
}
export function isTokenExpire(token?: string): boolean {
export function isTokenExpire(token: string | null): boolean {
if (!isString(token)) {
return true;
}