From b5189a769f294e33960429821fea42f4ac9d9da6 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sat, 15 Jan 2022 13:41:02 +0000 Subject: [PATCH] fix(build): type errors with revolt-api --- src/components/common/messaging/embed/Embed.tsx | 2 +- src/components/common/messaging/embed/EmbedMedia.tsx | 4 ++-- src/mobx/stores/Sync.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/common/messaging/embed/Embed.tsx b/src/components/common/messaging/embed/Embed.tsx index 36d7f609..a4aa7d23 100644 --- a/src/components/common/messaging/embed/Embed.tsx +++ b/src/components/common/messaging/embed/Embed.tsx @@ -1,4 +1,4 @@ -import { Embed as EmbedI } from "revolt-api/types/January"; +import { Embed as EmbedI } from "revolt-api/types/Channels"; import styles from "./Embed.module.scss"; import classNames from "classnames"; diff --git a/src/components/common/messaging/embed/EmbedMedia.tsx b/src/components/common/messaging/embed/EmbedMedia.tsx index 35665f46..cf8c948f 100644 --- a/src/components/common/messaging/embed/EmbedMedia.tsx +++ b/src/components/common/messaging/embed/EmbedMedia.tsx @@ -1,5 +1,5 @@ /* eslint-disable react-hooks/rules-of-hooks */ -import { Embed } from "revolt-api/types/January"; +import { JanuaryEmbed } from "revolt-api/types/January"; import styles from "./Embed.module.scss"; @@ -7,7 +7,7 @@ import { useIntermediate } from "../../../../context/intermediate/Intermediate"; import { useClient } from "../../../../context/revoltjs/RevoltClient"; interface Props { - embed: Embed; + embed: JanuaryEmbed; width?: number; height: number; } diff --git a/src/mobx/stores/Sync.ts b/src/mobx/stores/Sync.ts index 6e2f86c5..4a50de23 100644 --- a/src/mobx/stores/Sync.ts +++ b/src/mobx/stores/Sync.ts @@ -7,7 +7,7 @@ import { runInAction, } from "mobx"; import { Client } from "revolt.js"; -import { UserSettings } from "revolt.js/node_modules/revolt-api/types/Sync"; +import { UserSettings } from "revolt-api/types/Sync"; import { mapToRecord } from "../../lib/conversion";