Export React Stately Selection type #3995
NguyenDa18
started this conversation in
General
Replies: 1 comment
-
For posterity: this turned out to be something in an intermediary project, the type for the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
React Stately Selection datatype is the only thing not exported in packages/@react-stately/selection/src/index.ts and provides value for typing selections in React Spectrum. React Spectrum TableViews use the React Stately Selection datatype: checking the selection parameter of onSelectionChange, it can be observed that the selection is an extended Set object with additional keys currentKey and anchorKey. Because the React Stately Selection is not a currently exported type, the additional keys information is lost when a selection is typed as just the standard
@react-types/shared
Selection type.Beta Was this translation helpful? Give feedback.
All reactions