1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Improve types (#3305)

This commit is contained in:
Michael Telatynski
2023-04-20 09:02:38 +01:00
committed by GitHub
parent c805b7e29d
commit cb180b4195

View File

@@ -8992,7 +8992,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* @param identityAccessToken - The `access_token` field of the Identity * @param identityAccessToken - The `access_token` field of the Identity
* Server `/account/register` response (see {@link registerWithIdentityServer}). * Server `/account/register` response (see {@link registerWithIdentityServer}).
* *
* @returns Promise which resolves: Object, currently with no parameters. * @returns Promise which resolves: Object, containing success boolean.
* @returns Rejects: with an error response. * @returns Rejects: with an error response.
* @throws Error if No identity server is set * @throws Error if No identity server is set
*/ */
@@ -9001,8 +9001,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
clientSecret: string, clientSecret: string,
msisdnToken: string, msisdnToken: string,
identityAccessToken: string, identityAccessToken: string,
): Promise<any> { ): Promise<{ success: boolean }> {
// TODO: Types
const params = { const params = {
sid: sid, sid: sid,
client_secret: clientSecret, client_secret: clientSecret,
@@ -9033,7 +9032,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* This must be the same value submitted in the requestToken call. * This must be the same value submitted in the requestToken call.
* @param msisdnToken - The MSISDN token, as enetered by the user. * @param msisdnToken - The MSISDN token, as enetered by the user.
* *
* @returns Promise which resolves: Object, currently with no parameters. * @returns Promise which resolves: Object, containing success boolean.
* @returns Rejects: with an error response. * @returns Rejects: with an error response.
*/ */
public submitMsisdnTokenOtherUrl( public submitMsisdnTokenOtherUrl(
@@ -9041,8 +9040,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
sid: string, sid: string,
clientSecret: string, clientSecret: string,
msisdnToken: string, msisdnToken: string,
): Promise<any> { ): Promise<{ success: boolean }> {
// TODO: Types
const params = { const params = {
sid: sid, sid: sid,
client_secret: clientSecret, client_secret: clientSecret,