Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaSh committed Sep 30, 2024
1 parent 1a02f46 commit 7b65f90
Show file tree
Hide file tree
Showing 4 changed files with 541 additions and 443 deletions.
7 changes: 6 additions & 1 deletion dist/swapy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare type Config = {
continuousMode: boolean;
manualSwap: boolean;
swapMode: SwapMode;
autoScrollOnDrag: boolean;
};

export declare function createSwapy(root: Element | null, userConfig?: Partial<Config>): Swapy;
Expand All @@ -19,7 +20,11 @@ declare type SwapCallback = (event: SwapEventData) => void;

declare type SwapData = RequireOnlyOne<SwapEventDataData, 'map' | 'array' | 'object'>;

declare type SwapEndCallback = (event: SwapEventData) => void;
declare type SwapEndCallback = (event: SwapEndEventData) => void;

declare type SwapEndEventData = SwapEventData & {
hasChanged: boolean;
};

export declare type SwapEventArray = Array<{
slotId: string;
Expand Down
Loading

0 comments on commit 7b65f90

Please sign in to comment.