diff --git a/packages/core/types/Overrides.ts b/packages/core/types/Overrides.ts index 8feb7538ea..90bad86fa7 100644 --- a/packages/core/types/Overrides.ts +++ b/packages/core/types/Overrides.ts @@ -1,4 +1,4 @@ -import { ReactNode } from "react"; +import { ReactElement, ReactNode } from "react"; import { InputProps } from "../components/InputOrGroup"; import { Field } from "./Config"; import { ItemSelector } from "../lib/get-item"; @@ -6,7 +6,7 @@ import { ItemSelector } from "../lib/get-item"; // Plugins can use `usePuck` instead of relying on props type RenderFunc< Props extends { [key: string]: any } = { children: ReactNode } -> = React.FunctionComponent; +> = (props: Props) => ReactElement; // All direct render methods, excluding fields export const overrideKeys = [