* Revert "Add login flow types from matrix-react-sdk (#2633)"
This reverts commit 583e4808
* Leave login flow types, only revert method return type
Co-authored-by: Hugh Nimmo-Smith <hughns@matrix.org>
This commit is contained in:
committed by
GitHub
parent
a57c430b09
commit
afa3b37ad5
+3
-3
@@ -188,7 +188,7 @@ import { IPusher, IPusherRequest, IPushRules, PushRuleAction, PushRuleKind, Rule
|
||||
import { IThreepid } from "./@types/threepids";
|
||||
import { CryptoStore } from "./crypto/store/base";
|
||||
import { MediaHandler } from "./webrtc/mediaHandler";
|
||||
import { ILoginFlowsResponse, IRefreshTokenResponse, SSOAction } from "./@types/auth";
|
||||
import { IRefreshTokenResponse, SSOAction } from "./@types/auth";
|
||||
import { TypedEventEmitter } from "./models/typed-event-emitter";
|
||||
import { ReceiptType } from "./@types/read_receipts";
|
||||
import { MSC3575SlidingSyncRequest, MSC3575SlidingSyncResponse, SlidingSync } from "./sliding-sync";
|
||||
@@ -7080,10 +7080,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
|
||||
/**
|
||||
* @param {module:client.callback} callback Optional.
|
||||
* @return {Promise<ILoginFlowsResponse>} Resolves to the available login flows
|
||||
* @return {Promise} Resolves: TODO
|
||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||
*/
|
||||
public loginFlows(callback?: Callback): Promise<ILoginFlowsResponse> {
|
||||
public loginFlows(callback?: Callback): Promise<any> { // TODO: Types
|
||||
return this.http.request(callback, Method.Get, "/login");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user