Skip to content

Commit

Permalink
Merge pull request #578 from Shopify/typescript
Browse files Browse the repository at this point in the history
Typescript conversion
  • Loading branch information
tsov committed Oct 11, 2023
2 parents a8bfa03 + 4767a7c commit d799dd1
Show file tree
Hide file tree
Showing 37 changed files with 687 additions and 327 deletions.
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

0 comments on commit d799dd1

Please sign in to comment.