Skip to content

Commit 4767a7c

Browse files
authored
Merge pull request #579 from Shopify/events
Converts events to typescript
2 parents b9d3fed + 74c35e5 commit 4767a7c

File tree

30 files changed

+661
-312
lines changed

30 files changed

+661
-312
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import AbstractEvent from 'shared/AbstractEvent';
2-
import {FixMeAny} from 'shared/types';
2+
3+
import {SensorEvent} from '../Sensors/SensorEvent';
34

45
/**
56
* DragEventData
67
* @interface DragEventData
78
*/
8-
interface DragEventData {
9+
export interface DragEventData {
910
source: HTMLElement;
1011
originalSource: HTMLElement;
1112
mirror: HTMLElement;
1213
sourceContainer: HTMLElement;
13-
sensorEvent: FixMeAny;
14+
sensorEvent: SensorEvent;
1415
}
1516

1617
/**
@@ -123,7 +124,7 @@ export class DragMoveEvent extends DragEvent<DragEventData> {
123124
* DragOverEventData
124125
* @interface DragOverEventData
125126
*/
126-
interface DragOverEventData extends DragEventData {
127+
export interface DragOverEventData extends DragEventData {
127128
overContainer: HTMLElement;
128129
over: HTMLElement;
129130
}

0 commit comments

Comments
 (0)