Switch to importing @types/{event,partials} from main js-sdk export (#11369)

This commit is contained in:
Michael Telatynski 2023-08-08 11:12:12 +01:00 committed by GitHub
parent 368b6b9355
commit 033c600fa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
125 changed files with 217 additions and 244 deletions

View file

@ -17,8 +17,7 @@ limitations under the License.
*/
import React, { ComponentProps, ReactNode } from "react";
import { MatrixEvent, RoomMember } from "matrix-js-sdk/src/matrix";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { MatrixEvent, RoomMember, EventType } from "matrix-js-sdk/src/matrix";
import { _t } from "../../../languageHandler";
import { formatCommaSeparatedList } from "../../../utils/FormattingUtils";

View file

@ -16,8 +16,7 @@ limitations under the License.
import React from "react";
import classnames from "classnames";
import { MatrixEvent, RoomMember } from "matrix-js-sdk/src/matrix";
import { MsgType } from "matrix-js-sdk/src/@types/event";
import { MatrixEvent, RoomMember, MsgType } from "matrix-js-sdk/src/matrix";
import * as Avatar from "../../../Avatar";
import EventTile from "../rooms/EventTile";

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import React, { ReactElement } from "react";
import { JoinRule } from "matrix-js-sdk/src/@types/partials";
import { JoinRule } from "matrix-js-sdk/src/matrix";
import Dropdown from "./Dropdown";
import { NonEmptyArray } from "../../../@types/common";

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import classNames from "classnames";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { EventType } from "matrix-js-sdk/src/matrix";
import React, { useContext, useRef, useState, MouseEvent, ReactNode } from "react";
import MatrixClientContext from "../../../contexts/MatrixClientContext";

View file

@ -15,9 +15,8 @@ limitations under the License.
*/
import React, { useCallback, useContext, useRef } from "react";
import { Room } from "matrix-js-sdk/src/matrix";
import { Room, EventType } from "matrix-js-sdk/src/matrix";
import classNames from "classnames";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { useTopic } from "../../../hooks/room/useTopic";
import { Alignment } from "./Tooltip";