Conform more of the codebase to strict typing (#11195)
This commit is contained in:
parent
f32b9bab99
commit
285847560b
12 changed files with 59 additions and 59 deletions
|
@ -24,6 +24,7 @@ import {
|
|||
MatrixClient,
|
||||
} from "matrix-js-sdk/src/matrix";
|
||||
import { MatrixError, HTTPError } from "matrix-js-sdk/src/matrix";
|
||||
import { IThreepid } from "matrix-js-sdk/src/@types/threepids";
|
||||
|
||||
import Modal from "./Modal";
|
||||
import { _t, UserFriendlyError } from "./languageHandler";
|
||||
|
@ -45,6 +46,9 @@ export type Binding = {
|
|||
errorTitle: string;
|
||||
};
|
||||
|
||||
// IThreepid modified stripping validated_at and added_at as they aren't necessary for our UI
|
||||
export type ThirdPartyIdentifier = Omit<IThreepid, "validated_at" | "added_at">;
|
||||
|
||||
/**
|
||||
* Allows a user to add a third party identifier to their homeserver and,
|
||||
* optionally, the identity servers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue