foundry-ui
foundry-ui copied to clipboard
Replace SubcomponentPropsType to the actual props of the subcomponent
The below example is too precise, as we want them to be able to add more than just the current props. Perhaps a union of the ComponentProps and SubcomponentPropsType.
Before:
skeletonProps?: SubcomponentPropsType;
After:
skeletonShimmerProps?: ComponentProps<typeof Skeleton.Shimmer>;