Skip to content

Commit 061b4d2

Browse files
committed
fix CustomBlockComponentProps blockValue type
1 parent 0944da2 commit 061b4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export type BlockValueProp<T> = Extract<BlockValueType, { type: T }>;
347347
export interface CustomBlockComponentProps<T extends BlockValueTypeKeys> {
348348
renderComponent: () => JSX.Element | null;
349349
blockMap: BlockMapType;
350-
blockValue: T extends BlockValueType ? BlockValueProp<T> : BaseValueType;
350+
blockValue: T extends BlockValueTypeKeys ? BlockValueProp<T> : BaseValueType;
351351
level: number;
352352
}
353353

0 commit comments

Comments
 (0)