This commit is contained in:
Nuckyz 2024-09-18 15:06:13 -03:00
parent a6971289ad
commit adf7bd0dcc
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

3
src/globals.d.ts vendored
View file

@ -17,11 +17,12 @@
*/ */
import { LoDashStatic } from "lodash"; import { LoDashStatic } from "lodash";
import { PropsWithChildren } from "react";
declare global { declare global {
type AnyRecord = Record<PropertyKey, any>; type AnyRecord = Record<PropertyKey, any>;
type AnyComponentType<P extends AnyRecord = AnyRecord> = React.ComponentType<P & AnyRecord> & AnyRecord; type AnyComponentType<P extends AnyRecord = AnyRecord> = React.ComponentType<P & AnyRecord> & AnyRecord;
type AnyComponentTypeWithChildren<P extends AnyRecord = AnyRecord> = React.ComponentType<React.PropsWithChildren<P> & AnyRecord> & AnyRecord; type AnyComponentTypeWithChildren<P extends AnyRecord = AnyRecord> = AnyComponentType<PropsWithChildren<P>>;
/** /**
* 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