diff --git a/index.d.ts b/index.d.ts index f1814b9..2313eaa 100644 --- a/index.d.ts +++ b/index.d.ts @@ -172,6 +172,7 @@ declare module '@shopify/draggable' { mirror?: MirrorOptions; scrollable?: ScrollableOptions; swapAnimation?: SwapAnimationOptions; + sortAnimation?: SortAnimationOptions; } export class Draggable { @@ -510,9 +511,23 @@ declare module '@shopify/draggable' { protected detach(): void; } + /** + * SortAnimation + */ + export interface SortAnimationOptions { + duration?: number; + easingFunction?: string; + } + + class SortAnimation extends AbstractPlugin { + protected attach(): void; + protected detach(): void; + } + export const Plugins: { Collidable: typeof Collidable, SwapAnimation: typeof SwapAnimation, + SortAnimation: typeof SortAnimation, ResizeMirror: typeof ResizeMirror, Snappable: typeof Snappable, }; diff --git a/src/Plugins/SortAnimation/README.md b/src/Plugins/SortAnimation/README.md index c24bf27..7a8ff88 100644 --- a/src/Plugins/SortAnimation/README.md +++ b/src/Plugins/SortAnimation/README.md @@ -21,11 +21,11 @@ import SortAnimation from '@shopify/draggable/lib/plugins/sort-animation'; ``` ```html - + ``` ```html - + ``` ### API