diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-26 13:54:23 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-26 13:54:23 +0200 |
commit | 670b7d7d01c9cafb8176f36d4d4d5e7268f67e68 (patch) | |
tree | 523b13e113389432db891915cb0a723b011a3a01 /src/globals.d.ts | |
parent | f492d26379fb47338bc03d08f0d131fbc7863064 (diff) | |
download | Vencord-670b7d7d01c9cafb8176f36d4d4d5e7268f67e68.tar.gz Vencord-670b7d7d01c9cafb8176f36d4d4d5e7268f67e68.tar.bz2 Vencord-670b7d7d01c9cafb8176f36d4d4d5e7268f67e68.zip |
Make tsc happy
Diffstat (limited to 'src/globals.d.ts')
-rw-r--r-- | src/globals.d.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts index 5614543..49c3659 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -16,6 +16,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +import React from "react"; + declare global { /** * 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; + // 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 { webpackChunkdiscord_app: { push(chunk: any): any; @@ -55,5 +63,3 @@ declare global { [k: string]: any; } } - -export { }; |