build: inject createElement alias (#176)
This commit is contained in:
9
src/globals.d.ts
vendored
9
src/globals.d.ts
vendored
@ -16,7 +16,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
|
||||
declare global {
|
||||
/**
|
||||
@ -49,12 +48,6 @@ 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;
|
||||
@ -63,3 +56,5 @@ declare global {
|
||||
[k: string]: any;
|
||||
}
|
||||
}
|
||||
|
||||
export { };
|
||||
|
Reference in New Issue
Block a user