Skip to content

Commit dbca971

Browse files
authored
Pass blockMap instead of the current block
1 parent 67f4c84 commit dbca971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export type BlockValueProp<T> = Extract<BlockValueType, { type: T }>;
346346

347347
export interface CustomBlockComponentProps<T extends BlockValueTypeKeys> {
348348
renderComponent: () => JSX.Element | null;
349-
block: BlockType;
349+
blockMap: BlockMapType;
350350
blockValue: T extends BlockValueType ? BlockValueProp<T> : BaseValueType;
351351
level: number;
352352
}

0 commit comments

Comments
 (0)