mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-21 15:51:11 -05:00
fix(build): type errors with revolt-api
This commit is contained in:
parent
2c5467c189
commit
b5189a769f
3 changed files with 4 additions and 4 deletions
|
@ -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 styles from "./Embed.module.scss";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* eslint-disable react-hooks/rules-of-hooks */
|
/* 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";
|
import styles from "./Embed.module.scss";
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import { useIntermediate } from "../../../../context/intermediate/Intermediate";
|
||||||
import { useClient } from "../../../../context/revoltjs/RevoltClient";
|
import { useClient } from "../../../../context/revoltjs/RevoltClient";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
embed: Embed;
|
embed: JanuaryEmbed;
|
||||||
width?: number;
|
width?: number;
|
||||||
height: number;
|
height: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
runInAction,
|
runInAction,
|
||||||
} from "mobx";
|
} from "mobx";
|
||||||
import { Client } from "revolt.js";
|
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";
|
import { mapToRecord } from "../../lib/conversion";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue