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

3
src/globals.d.ts vendored
View file

@ -17,12 +17,11 @@
*/
import { LoDashStatic } from "lodash";
import { PropsWithChildren } from "react";
declare global {
type AnyRecord = Record<PropertyKey, any>;
type AnyComponentType<P extends AnyRecord = AnyRecord> = React.ComponentType<P & AnyRecord> & AnyRecord;
type AnyComponentTypeWithChildren<P extends AnyRecord = AnyRecord> = AnyComponentType<PropsWithChildren<P>>;
type AnyComponentTypeWithChildren<P extends AnyRecord = AnyRecord> = AnyComponentType<React.PropsWithChildren<P>>;
/**
* This exists only at build time, so references to it in patches should insert it