Skip to content

Commit

Permalink
Converts DraggableEvent to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
tsov committed Sep 28, 2023
1 parent b9d3fed commit cc42520
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/young-drinks-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Converts DraggableEvent to typescript
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
import AbstractEvent from 'shared/AbstractEvent';
import {FixMeAny} from 'shared/types';

/**
* DraggableEventData
* @interface DraggableEventData
*/
interface DraggableEventData {
draggable: FixMeAny;
}

/**
* Base draggable event
* @class DraggableEvent
* @module DraggableEvent
* @extends AbstractEvent
*/
export class DraggableEvent extends AbstractEvent {
export class DraggableEvent extends AbstractEvent<DraggableEventData> {
static type = 'draggable';

/**
Expand Down
File renamed without changes.

0 comments on commit cc42520

Please sign in to comment.