foundry-ui icon indicating copy to clipboard operation
foundry-ui copied to clipboard

Replace SubcomponentPropsType to the actual props of the subcomponent

Open aVileBroker opened this issue 4 years ago • 0 comments

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

aVileBroker avatar Sep 07 '21 21:09 aVileBroker