react-spectrum
react-spectrum copied to clipboard
export internal types such as StyleRenderProps, ScrollableProps, etc
Provide a general summary of the feature here
When extending functionality (e.g. doing what I mentioned in here), or composing components in general, it's very often that we will need to access those types.
Utils like Pick
and Omit
may not work all the time, e.g. when distribution is involved or configuration differences such as strict
or exactOptionalPropertyTypes
.
๐ค Expected Behavior?
export types used by public types
๐ฏ Current Behavior
They are not exported
๐ Possible Solution
No response
๐ฆ Context
Note that it is true that exporting more types increase the surface area of the public API, making type-level breakage more easy to occurs. So it is a balance between stability and extensibility.
Each library takes a different stance on this. Some disregards type-level breaking changes as breaking changes, Some do that conditionally, such as identifying some types as key types based on basic usage vs advance usage. Some fully respect that such as some library focus on types.
๐ป Examples
No response
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response