From 0859827910a250d9d72bf16523376a13a2375323 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Thu, 28 May 2020 11:56:48 -0400 Subject: [PATCH] fix types --- src/BasePlatform.ts | 6 +++--- src/MatrixClientPeg.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BasePlatform.ts b/src/BasePlatform.ts index 14682728d0..ed04c67803 100644 --- a/src/BasePlatform.ts +++ b/src/BasePlatform.ts @@ -189,7 +189,7 @@ export default abstract class BasePlatform { * @returns {string|null} the previously stored pickle key, or null if no * pickle key has been stored. */ - async getPickleKey(userId: string, deviceId: string): string | null { + async getPickleKey(userId: string, deviceId: string): Promise { return null; } @@ -200,7 +200,7 @@ export default abstract class BasePlatform { * @returns {string|null} the pickle key, or null if the platform does not * support storing pickle keys. */ - async createPickleKey(userId: string, deviceId: string): string | null { + async createPickleKey(userId: string, deviceId: string): Promise { return null; } @@ -209,6 +209,6 @@ export default abstract class BasePlatform { * @param {string} userId the user ID for the user that the pickle key is for. * @param {string} userId the device ID that the pickle key is for. */ - async destroyPickleKey(userId: string, deviceId: string) { + async destroyPickleKey(userId: string, deviceId: string): Promise { } } diff --git a/src/MatrixClientPeg.ts b/src/MatrixClientPeg.ts index ddeff39216..e875a053b5 100644 --- a/src/MatrixClientPeg.ts +++ b/src/MatrixClientPeg.ts @@ -41,6 +41,7 @@ export interface IMatrixClientCreds { deviceId: string, accessToken: string, guest: boolean, + pickleKey: string, } // TODO: Move this to the js-sdk