blocks-react-renderer
blocks-react-renderer copied to clipboard
[feat]: Exporting types to have more modularity in our implementation
A clear and concise description of what the feature is
the package got a lot of interfaces not exported which is making the usage harder for an example, BlocksRendererProps
if we want to auto-generate the blocks
Why should this feature be included?
That's quite common to export the type for reusability
Please provide an example for how this would work
interface BlocksRendererProps {
content: RootNode[];
blocks?: Partial<BlocksComponents>;
modifiers?: Partial<ModifiersComponents>;
}
to
export interface BlocksRendererProps {
content: RootNode[];
blocks?: Partial<BlocksComponents>;
modifiers?: Partial<ModifiersComponents>;
}