Skip to content

Commit

Permalink
fix: add named export for Draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Sep 20, 2022
1 parent b19bff0 commit 2cfc80a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ interface DraggableOptions {
mouseOnly?: boolean;
}

export default class Draggable {
export class Draggable {
constructor(options?: DraggableOptions);
update(options?: DraggableOptions): void;
bindTo(element: Element): void;
destroy(): void;
}

export default Draggable;

0 comments on commit 2cfc80a

Please sign in to comment.