chore(refactor): move and re-organise types folder

This commit is contained in:
Paul Makles
2022-06-10 14:11:38 +01:00
parent ebcbe4bd4b
commit e0ca1681bd
53 changed files with 78 additions and 102 deletions

View File

@@ -13,7 +13,6 @@ import {
import { hydrateState } from "../mobx/State";
import { Children } from "../types/Preact";
import Locale from "./Locale";
import Theme from "./Theme";
import Intermediate from "./intermediate/Intermediate";

View File

@@ -12,7 +12,6 @@ import { determineLink } from "../../lib/links";
import { useApplicationState } from "../../mobx/State";
import { Children } from "../../types/Preact";
import Modals from "./Modals";
export type Screen =

View File

@@ -6,7 +6,6 @@ import { useContext, useState } from "preact/hooks";
import { Category, InputBox, Modal } from "@revoltchat/ui";
import { Children } from "../../../types/Preact";
import { I18nError } from "../../Locale";
import { AppContext } from "../../revoltjs/RevoltClient";
import { takeError } from "../../revoltjs/util";

View File

@@ -14,7 +14,6 @@ import { TextReact } from "../../../lib/i18n";
import Message from "../../../components/common/messaging/Message";
import UserIcon from "../../../components/common/user/UserIcon";
import { Children } from "../../../types/Preact";
import { I18nError } from "../../Locale";
import { AppContext } from "../../revoltjs/RevoltClient";
import { takeError } from "../../revoltjs/util";

View File

@@ -2,7 +2,6 @@ import { Redirect } from "react-router-dom";
import { useApplicationState } from "../../mobx/State";
import { Children } from "../../types/Preact";
import { useClient } from "./RevoltClient";
interface Props {

View File

@@ -6,7 +6,6 @@ import { useContext } from "preact/hooks";
import { Preloader } from "@revoltchat/ui";
import { Children } from "../../types/Preact";
import { ClientStatus, StatusContext } from "./RevoltClient";
interface Props {

View File

@@ -9,7 +9,6 @@ import { Preloader } from "@revoltchat/ui";
import { useApplicationState } from "../../mobx/State";
import { Children } from "../../types/Preact";
import { useIntermediate } from "../intermediate/Intermediate";
import { registerEvents } from "./events";
import { takeError } from "./util";

View File

@@ -2,8 +2,6 @@ import { Channel } from "revolt.js";
import { Text } from "preact-i18n";
import { Children } from "../../types/Preact";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function takeError(error: any): string {
if (error.response) {