+4
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* Move an array item to a different position. Returns a new array with the item moved to the new position.
|
||||
*/
|
||||
export declare function arrayMove<T>(array: T[], from: number, to: number): T[];
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* Swap an array item to a different position. Returns a new array with the item swapped to the new position.
|
||||
*/
|
||||
export declare function arraySwap<T>(array: T[], from: number, to: number): T[];
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { ClientRect, UniqueIdentifier, UseDndContextReturnValue } from '@dnd-kit/core';
|
||||
export declare function getSortedRects(items: UniqueIdentifier[], rects: UseDndContextReturnValue['droppableRects']): ClientRect[];
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
export { arrayMove } from './arrayMove';
|
||||
export { arraySwap } from './arraySwap';
|
||||
export { getSortedRects } from './getSortedRects';
|
||||
export { isValidIndex } from './isValidIndex';
|
||||
export { itemsEqual } from './itemsEqual';
|
||||
export { normalizeDisabled } from './normalizeDisabled';
|
||||
+1
@@ -0,0 +1 @@
|
||||
export declare function isValidIndex(index: number | null): index is number;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { UniqueIdentifier } from '@dnd-kit/core';
|
||||
export declare function itemsEqual(a: UniqueIdentifier[], b: UniqueIdentifier[]): boolean;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Disabled } from '../types';
|
||||
export declare function normalizeDisabled(disabled: boolean | Disabled): Disabled;
|
||||
Reference in New Issue
Block a user