diff --git a/src/types.ts b/src/types.ts index 104c985..7cf1d66 100644 --- a/src/types.ts +++ b/src/types.ts @@ -347,7 +347,7 @@ export type BlockValueProp = Extract; export interface CustomBlockComponentProps { renderComponent: () => JSX.Element | null; blockMap: BlockMapType; - blockValue: T extends BlockValueType ? BlockValueProp : BaseValueType; + blockValue: T extends BlockValueTypeKeys ? BlockValueProp : BaseValueType; level: number; }