react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

export internal types such as StyleRenderProps, ScrollableProps, etc

Open unional opened this issue 1 month ago โ€ข 0 comments

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

unional avatar May 17 '24 16:05 unional