From b7ecdc1176e22529f4204ad536ccbc956ca7eb69 Mon Sep 17 00:00:00 2001 From: Vitor Reis Date: Mon, 24 Oct 2022 08:30:33 -0300 Subject: [PATCH] fix: Fix TS2416 error on dist build (#1386) --- src/token-store/fileTokenStore.ts | 2 +- src/token-store/memoryTokenStore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/token-store/fileTokenStore.ts b/src/token-store/fileTokenStore.ts index 30ca38e68..e579e2f69 100644 --- a/src/token-store/fileTokenStore.ts +++ b/src/token-store/fileTokenStore.ts @@ -137,7 +137,7 @@ export class FileTokenStore implements TokenStore { public async setToken( sessionName: string, - tokenData: SessionToken | void + tokenData: SessionToken | null ): Promise { if (!tokenData || !isValidSessionToken(tokenData)) { return false; diff --git a/src/token-store/memoryTokenStore.ts b/src/token-store/memoryTokenStore.ts index a7b2c4b06..d385de91c 100644 --- a/src/token-store/memoryTokenStore.ts +++ b/src/token-store/memoryTokenStore.ts @@ -46,7 +46,7 @@ export class MemoryTokenStore implements TokenStore { } public setToken( sessionName: string, - tokenData: SessionToken | void + tokenData: SessionToken | null ): boolean { if (!tokenData) { return false;