Skip to content

Commit

Permalink
fix: add missing types for root render method
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 29, 2025
1 parent c22b3a9 commit 004bfe8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/core/components/Render/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function Render<
puck={{
renderDropZone: DropZone,
isEditing: false,
dragRef: null,
}}
title={title}
editMode={false}
Expand Down
1 change: 1 addition & 0 deletions packages/core/components/ServerRender/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function Render<UserConfig extends Config = Config>({
<DropZoneRender zone={zone} data={data} config={config} />
),
isEditing: false,
dragRef: null,
}}
title={title}
editMode={false}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { JSX } from "react";
import { Fields } from "./Fields";
import { ComponentData, RootData } from "./Data";

import { AsFieldProps, WithId, WithPuckProps } from "./Utils";
import { AsFieldProps, WithChildren, WithId, WithPuckProps } from "./Utils";
import { AppState } from "./AppState";
import { DefaultComponentProps, DefaultRootRenderProps } from "./Props";
import { DefaultComponentProps } from "./Props";
import { Permissions } from "./API";

export type PuckComponent<Props> = (
Expand Down Expand Up @@ -83,7 +83,7 @@ export type Config<
};
root?: Partial<
ComponentConfig<
DefaultRootRenderProps<RootProps>,
WithChildren<RootProps>,
AsFieldProps<RootProps>,
RootData<AsFieldProps<RootProps>>
>
Expand Down

0 comments on commit 004bfe8

Please sign in to comment.