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

@ -15,8 +15,7 @@ limitations under the License.
*/
import React, { FormEvent, useCallback, useContext, useRef, useState } from "react";
import { Room } from "matrix-js-sdk/src/matrix";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { Room, EventType } from "matrix-js-sdk/src/matrix";
import { _t } from "../../../languageHandler";
import { ICompletion } from "../../../autocomplete/Autocompleter";

View file

@ -15,9 +15,7 @@ limitations under the License.
*/
import React, { ReactNode } from "react";
import { IJoinRuleEventContent, JoinRule, RestrictedAllowType } from "matrix-js-sdk/src/@types/partials";
import { Room } from "matrix-js-sdk/src/matrix";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { IJoinRuleEventContent, JoinRule, RestrictedAllowType, Room, EventType } from "matrix-js-sdk/src/matrix";
import StyledRadioGroup, { IDefinition } from "../elements/StyledRadioGroup";
import { _t } from "../../../languageHandler";

View file

@ -17,7 +17,7 @@ limitations under the License.
import React from "react";
import classNames from "classnames";
import { IPusher } from "matrix-js-sdk/src/@types/PushRules";
import { PUSHER_ENABLED } from "matrix-js-sdk/src/@types/event";
import { PUSHER_ENABLED } from "matrix-js-sdk/src/matrix";
import { LocalNotificationSettings } from "matrix-js-sdk/src/@types/local_notifications";
import { formatDate } from "../../../../DateUtils";

View file

@ -16,7 +16,7 @@ limitations under the License.
import React, { ForwardedRef, forwardRef } from "react";
import { IPusher } from "matrix-js-sdk/src/@types/PushRules";
import { PUSHER_DEVICE_ID } from "matrix-js-sdk/src/@types/event";
import { PUSHER_DEVICE_ID } from "matrix-js-sdk/src/matrix";
import { LocalNotificationSettings } from "matrix-js-sdk/src/@types/local_notifications";
import { _t } from "../../../../languageHandler";

View file

@ -15,8 +15,7 @@ limitations under the License.
*/
import React from "react";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { Room } from "matrix-js-sdk/src/matrix";
import { EventType, Room } from "matrix-js-sdk/src/matrix";
import { _t } from "../../../../../languageHandler";
import AccessibleButton, { ButtonEvent } from "../../../elements/AccessibleButton";

View file

@ -15,8 +15,7 @@ limitations under the License.
*/
import React from "react";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { RoomMember, RoomState, RoomStateEvent, Room, IContent } from "matrix-js-sdk/src/matrix";
import { EventType, RoomMember, RoomState, RoomStateEvent, Room, IContent } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger";
import { throttle, get } from "lodash";
import { compare } from "matrix-js-sdk/src/utils";

View file

@ -15,9 +15,15 @@ limitations under the License.
*/
import React, { ReactNode } from "react";
import { GuestAccess, HistoryVisibility, JoinRule } from "matrix-js-sdk/src/@types/partials";
import { MatrixEvent, RoomStateEvent, Room } from "matrix-js-sdk/src/matrix";
import { EventType } from "matrix-js-sdk/src/@types/event";
import {
GuestAccess,
HistoryVisibility,
JoinRule,
MatrixEvent,
RoomStateEvent,
Room,
EventType,
} from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger";
import { Icon as WarningIcon } from "../../../../../../res/img/warning.svg";

View file

@ -15,9 +15,7 @@ limitations under the License.
*/
import React, { useCallback, useMemo, useState } from "react";
import { JoinRule } from "matrix-js-sdk/src/@types/partials";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { RoomState, Room } from "matrix-js-sdk/src/matrix";
import { JoinRule, EventType, RoomState, Room } from "matrix-js-sdk/src/matrix";
import { _t } from "../../../../../languageHandler";
import LabelledToggleSwitch from "../../../elements/LabelledToggleSwitch";