Skip to content

Commit

Permalink
Merge pull request #579 from Shopify/events
Browse files Browse the repository at this point in the history
Converts events to typescript
  • Loading branch information
tsov authored Oct 4, 2023
2 parents b9d3fed + 74c35e5 commit 4767a7c
Show file tree
Hide file tree
Showing 30 changed files with 661 additions and 312 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
9 changes: 5 additions & 4 deletions src/Draggable/DragEvent/DragEvent.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import AbstractEvent from 'shared/AbstractEvent';
import {FixMeAny} from 'shared/types';

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

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

/**
Expand Down Expand Up @@ -123,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 4767a7c

Please sign in to comment.