Make tsc happy

This commit is contained in:
Vendicated 2022-10-26 13:54:23 +02:00
parent f492d26379
commit 670b7d7d01
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3
2 changed files with 10 additions and 4 deletions

@ -24,10 +24,10 @@ export * as Updater from "./utils/updater";
export * as Webpack from "./webpack"; export * as Webpack from "./webpack";
import { popNotice, showNotice } from "./api/Notices"; import { popNotice, showNotice } from "./api/Notices";
import { PlainSettings,Settings } from "./api/settings"; import { PlainSettings, Settings } from "./api/settings";
import { startAllPlugins } from "./plugins"; import { startAllPlugins } from "./plugins";
export { PlainSettings,Settings }; export { PlainSettings, Settings };
import "./webpack/patchWebpack"; import "./webpack/patchWebpack";
import "./utils/quickCss"; import "./utils/quickCss";

10
src/globals.d.ts vendored

@ -16,6 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import React from "react";
declare global { declare global {
/** /**
* This exists only at build time, so references to it in patches should insert it * This exists only at build time, so references to it in patches should insert it
@ -47,6 +49,12 @@ declare global {
*/ */
export var DiscordNative: any; export var DiscordNative: any;
// jsFactory, here to make ts happy
/** Shorter alias for React.createElement to reduce bundle size, don't use this. */
export var _Ve$: typeof React["createElement"];
/** Shorter alias for React.Fragment to reduce bundle size, don't use this. */
export var _VF$: typeof React["Fragment"];
interface Window { interface Window {
webpackChunkdiscord_app: { webpackChunkdiscord_app: {
push(chunk: any): any; push(chunk: any): any;
@ -55,5 +63,3 @@ declare global {
[k: string]: any; [k: string]: any;
} }
} }
export { };