Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ export const Block: React.FC<Block> = props => {
return (
<CustomComponent
renderComponent={renderComponent}
blockMap={blockMap}
blockValue={blockValue as BlockValueProp<typeof blockValue.type>}
level={level}
>
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ export type BlockValueProp<T> = Extract<BlockValueType, { type: T }>;

export interface CustomBlockComponentProps<T extends BlockValueTypeKeys> {
renderComponent: () => JSX.Element | null;
blockMap: BlockMapType;
blockValue: T extends BlockValueType ? BlockValueProp<T> : BaseValueType;
level: number;
}
Expand Down