From 60198ab08abf3df46b7612042acddac313dd31c2 Mon Sep 17 00:00:00 2001 From: Chris Villa Date: Sat, 20 Jan 2024 22:24:43 +0100 Subject: [PATCH] build: fix invalid types in overrides --- packages/core/types/Overrides.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [