From ecd78f92c07de648be702b21abf1e82dff456424 Mon Sep 17 00:00:00 2001 From: Michael Handley Date: Wed, 21 Jun 2017 17:52:25 -0700 Subject: [PATCH 1/2] Use HTMLElement instead of React.ReactNode for node type --- types/react-sortable-hoc/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-sortable-hoc/index.d.ts b/types/react-sortable-hoc/index.d.ts index 1ae88e258a..784f1c1372 100644 --- a/types/react-sortable-hoc/index.d.ts +++ b/types/react-sortable-hoc/index.d.ts @@ -12,7 +12,7 @@ declare module 'react-sortable-hoc' { export type Offset = number | string; export interface SortStart { - node: React.ReactNode; + node: HTMLElement; index: number; collection: Offset; } From 60e176f79b08f5c38d0081672f6c5de74ddc8781 Mon Sep 17 00:00:00 2001 From: Michael Handley Date: Thu, 22 Jun 2017 10:27:00 -0700 Subject: [PATCH 2/2] Use Element instead of HTMLElement for node --- types/react-sortable-hoc/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-sortable-hoc/index.d.ts b/types/react-sortable-hoc/index.d.ts index 784f1c1372..433824033a 100644 --- a/types/react-sortable-hoc/index.d.ts +++ b/types/react-sortable-hoc/index.d.ts @@ -12,7 +12,7 @@ declare module 'react-sortable-hoc' { export type Offset = number | string; export interface SortStart { - node: HTMLElement; + node: Element; index: number; collection: Offset; }