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

@@ -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) {