You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
When using the pull-components and generate-typescript-typedefs it's not possible to get proper types for component groups, when using restriction based on tags. Types for sub Blocks will be generated with unknown, which is not the case, when using component whitelisting based on component, or based on folder.
Expected behavior:
Component groups based on Tags are correctly resolved (like folder component groups), and types are generated accordingly.
Steps to reproduce:
Setup a Tag and assign it to one or multiple components in the Block Library
Open a Page Content Type Block and assign a Blocks field type and check "Allow only specific components to be inserted" and selected created Tag
Download component specification via the cli by running the pull-components command
Generate type definitions by running the generate-typescript-typedefs command
Uh oh!
There was an error while loading. Please reload this page.
Current behavior:
When using the
pull-components
andgenerate-typescript-typedefs
it's not possible to get proper types for component groups, when using restriction based on tags. Types for sub Blocks will be generated withunknown
, which is not the case, when using component whitelisting based on component, or based on folder.Expected behavior:
Component groups based on Tags are correctly resolved (like folder component groups), and types are generated accordingly.
Steps to reproduce:
Blocks
field type and check "Allow only specific components to be inserted" and selected created Tagpull-components
commandgenerate-typescript-typedefs
commandunknown[]
Related code:
Generated Code:
The text was updated successfully, but these errors were encountered: