blocks-react-renderer icon indicating copy to clipboard operation
blocks-react-renderer copied to clipboard

[feat]: Exporting types to have more modularity in our implementation

Open oktapodia opened this issue 8 months ago • 1 comments

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>;
}

oktapodia avatar May 31 '24 13:05 oktapodia