fix(build): type errors with revolt-api

This commit is contained in:
Paul Makles 2022-01-15 13:41:02 +00:00
parent 2c5467c189
commit b5189a769f
3 changed files with 4 additions and 4 deletions

View file

@ -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";

View file

@ -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;
}

View file

@ -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";