Skip to content

Commit

Permalink
Pass blockMap instead of the current block
Browse files Browse the repository at this point in the history
  • Loading branch information
pyk committed Feb 17, 2021
1 parent 67f4c84 commit dbca971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export type BlockValueProp<T> = Extract<BlockValueType, { type: T }>;

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

0 comments on commit dbca971

Please sign in to comment.