@react-types/shared 3.35.0 → 3.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/dnd.d.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/shared",
3
- "version": "3.35.0",
3
+ "version": "3.36.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -17,5 +17,5 @@
17
17
  "peerDependencies": {
18
18
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
19
19
  },
20
- "gitHead": "3577a20859b9585a000010c720f6ee39c1c588cc"
20
+ "gitHead": "1c84a49a1faf50b571c84e00bcf9c60b22ddd03e"
21
21
  }
package/src/dnd.d.ts CHANGED
@@ -185,9 +185,10 @@ export interface DroppableCollectionReorderEvent {
185
185
  target: ItemDropTarget;
186
186
  }
187
187
 
188
+ export type DragType = string | symbol;
188
189
  export interface DragTypes {
189
190
  /** Returns whether the drag contains data of the given type. */
190
- has(type: string | symbol): boolean;
191
+ has(type: DragType | DragType[]): boolean;
191
192
  }
192
193
 
193
194
  export interface DropTargetDelegate {