You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
fix types
This commit is contained in:
@ -189,7 +189,7 @@ export default abstract class BasePlatform {
|
|||||||
* @returns {string|null} the previously stored pickle key, or null if no
|
* @returns {string|null} the previously stored pickle key, or null if no
|
||||||
* pickle key has been stored.
|
* pickle key has been stored.
|
||||||
*/
|
*/
|
||||||
async getPickleKey(userId: string, deviceId: string): string | null {
|
async getPickleKey(userId: string, deviceId: string): Promise<string | null> {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ export default abstract class BasePlatform {
|
|||||||
* @returns {string|null} the pickle key, or null if the platform does not
|
* @returns {string|null} the pickle key, or null if the platform does not
|
||||||
* support storing pickle keys.
|
* support storing pickle keys.
|
||||||
*/
|
*/
|
||||||
async createPickleKey(userId: string, deviceId: string): string | null {
|
async createPickleKey(userId: string, deviceId: string): Promise<string | null> {
|
||||||
return null;
|
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 user ID for the user that the pickle key is for.
|
||||||
* @param {string} userId the device ID 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<void> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,7 @@ export interface IMatrixClientCreds {
|
|||||||
deviceId: string,
|
deviceId: string,
|
||||||
accessToken: string,
|
accessToken: string,
|
||||||
guest: boolean,
|
guest: boolean,
|
||||||
|
pickleKey: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Move this to the js-sdk
|
// TODO: Move this to the js-sdk
|
||||||
|
Reference in New Issue
Block a user