Skip to content

Commit

Permalink
build: fix invalid types in overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 22, 2024
1 parent 35090d4 commit 60198ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/types/Overrides.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ReactNode } from "react";
import { ReactElement, ReactNode } from "react";
import { InputProps } from "../components/InputOrGroup";
import { Field } from "./Config";
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: Props) => ReactElement;

// All direct render methods, excluding fields
export const overrideKeys = [
Expand Down

0 comments on commit 60198ab

Please sign in to comment.