@react-types/shared 3.0.0-nightly-4f85a359f-241022 → 3.0.0-nightly-fb28ab3b4-241024
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.
- package/package.json +1 -1
- package/src/collections.d.ts +2 -2
- package/src/dnd.d.ts +1 -1
package/package.json
CHANGED
package/src/collections.d.ts
CHANGED
|
@@ -87,9 +87,9 @@ export interface Sortable {
|
|
|
87
87
|
|
|
88
88
|
export interface SortDescriptor {
|
|
89
89
|
/** The key of the column to sort by. */
|
|
90
|
-
column
|
|
90
|
+
column: Key,
|
|
91
91
|
/** The direction to sort by. */
|
|
92
|
-
direction
|
|
92
|
+
direction: SortDirection
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export type SortDirection = 'ascending' | 'descending';
|
package/src/dnd.d.ts
CHANGED
|
@@ -268,7 +268,7 @@ export interface DraggableCollectionEndEvent extends DragEndEvent {
|
|
|
268
268
|
isInternal: boolean
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
export type DragPreviewRenderer = (items: DragItem[], callback: (node: HTMLElement) => void) => void;
|
|
271
|
+
export type DragPreviewRenderer = (items: DragItem[], callback: (node: HTMLElement | null) => void) => void;
|
|
272
272
|
|
|
273
273
|
export interface DraggableCollectionProps {
|
|
274
274
|
/** Handler that is called when a drag operation is started. */
|