Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript conversion #578

Merged
merged 12 commits into from
Oct 11, 2023
5 changes: 5 additions & 0 deletions .changeset/calm-kangaroos-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Convert CollidableEvent to typescript
5 changes: 5 additions & 0 deletions .changeset/curvy-pots-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Convert SensorEvent to typescript
5 changes: 5 additions & 0 deletions .changeset/grumpy-zebras-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Convert SwappableEvent to typescript
5 changes: 5 additions & 0 deletions .changeset/khaki-candles-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Convert SortableEvent to typescript
5 changes: 5 additions & 0 deletions .changeset/neat-rockets-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Converts DragEvent tests to typescript
5 changes: 5 additions & 0 deletions .changeset/spicy-clouds-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Convert DroppableEvent to typescript
5 changes: 5 additions & 0 deletions .changeset/warm-jars-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Converts MirrorEvent to typescript
5 changes: 5 additions & 0 deletions .changeset/wild-bananas-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/draggable': patch
---

Convert SnappableEvent to typescript
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
8 changes: 5 additions & 3 deletions src/Draggable/DragEvent/DragEvent.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import AbstractEvent from 'shared/AbstractEvent';

import {SensorEvent} from '../Sensors/SensorEvent';

/**
* DragEventData
* @interface DragEventData
*/
interface DragEventData {
export interface DragEventData {
source: HTMLElement;
originalSource: HTMLElement;
mirror: HTMLElement;
sourceContainer: HTMLElement;
sensorEvent: any;
sensorEvent: SensorEvent;
}

/**
Expand Down Expand Up @@ -122,7 +124,7 @@ export class DragMoveEvent extends DragEvent<DragEventData> {
* DragOverEventData
* @interface DragOverEventData
*/
interface DragOverEventData extends DragEventData {
export interface DragOverEventData extends DragEventData {
overContainer: HTMLElement;
over: HTMLElement;
}
Expand Down
278 changes: 0 additions & 278 deletions src/Draggable/DragEvent/tests/DragEvent.test.js

This file was deleted.

Loading