Skip to content

Commit d799dd1

Browse files
authored
Merge pull request #578 from Shopify/typescript
Typescript conversion
2 parents a8bfa03 + 4767a7c commit d799dd1

File tree

37 files changed

+687
-327
lines changed

37 files changed

+687
-327
lines changed

.changeset/calm-kangaroos-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Convert CollidableEvent to typescript

.changeset/curvy-pots-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Convert SensorEvent to typescript

.changeset/grumpy-zebras-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Convert SwappableEvent to typescript

.changeset/khaki-candles-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Convert SortableEvent to typescript

.changeset/neat-rockets-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Converts DragEvent tests to typescript

.changeset/spicy-clouds-tickle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Convert DroppableEvent to typescript

.changeset/warm-jars-tickle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Converts MirrorEvent to typescript

.changeset/wild-bananas-smoke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Convert SnappableEvent to typescript

.changeset/young-drinks-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/draggable': patch
3+
---
4+
5+
Converts DraggableEvent to typescript

src/Draggable/DragEvent/DragEvent.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import AbstractEvent from 'shared/AbstractEvent';
22

3+
import {SensorEvent} from '../Sensors/SensorEvent';
4+
35
/**
46
* DragEventData
57
* @interface DragEventData
68
*/
7-
interface DragEventData {
9+
export interface DragEventData {
810
source: HTMLElement;
911
originalSource: HTMLElement;
1012
mirror: HTMLElement;
1113
sourceContainer: HTMLElement;
12-
sensorEvent: any;
14+
sensorEvent: SensorEvent;
1315
}
1416

1517
/**
@@ -122,7 +124,7 @@ export class DragMoveEvent extends DragEvent<DragEventData> {
122124
* DragOverEventData
123125
* @interface DragOverEventData
124126
*/
125-
interface DragOverEventData extends DragEventData {
127+
export interface DragOverEventData extends DragEventData {
126128
overContainer: HTMLElement;
127129
over: HTMLElement;
128130
}

0 commit comments

Comments
 (0)