diff --git a/src/globals.d.ts b/src/globals.d.ts index be9553bd3..781b98a30 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -17,11 +17,12 @@ */ import { LoDashStatic } from "lodash"; +import { PropsWithChildren } from "react"; declare global { type AnyRecord = Record; type AnyComponentType

= React.ComponentType

& AnyRecord; - type AnyComponentTypeWithChildren

= React.ComponentType & AnyRecord> & AnyRecord; + type AnyComponentTypeWithChildren

= AnyComponentType>; /** * This exists only at build time, so references to it in patches should insert it