Update types to match js-sdk --strict mode (#9528)
Co-authored-by: Michael Weimann <michaelw@matrix.org>
This commit is contained in:
parent
3330d5a634
commit
5f540eb25c
4 changed files with 6 additions and 6 deletions
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { AuthType, createClient } from 'matrix-js-sdk/src/matrix';
|
||||
import { AuthType, createClient, IAuthData } from 'matrix-js-sdk/src/matrix';
|
||||
import React, { Fragment, ReactNode } from 'react';
|
||||
import { MatrixClient } from "matrix-js-sdk/src/client";
|
||||
import classNames from "classnames";
|
||||
|
@ -443,7 +443,7 @@ export default class Registration extends React.Component<IProps, IState> {
|
|||
});
|
||||
};
|
||||
|
||||
private makeRegisterRequest = auth => {
|
||||
private makeRegisterRequest = (auth: IAuthData | null) => {
|
||||
const registerParams = {
|
||||
username: this.state.formVals.username,
|
||||
password: this.state.formVals.password,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue