Skip to content

Commit f6b4e2e

Browse files
committed
fix(react18): add children to ReactSortableProps
1 parent 8c7914d commit f6b4e2e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export {
1010
SortableEvent,
1111
SortableOptions,
1212
Utils,
13-
} from "sortablejs"
14-
export { ReactSortable } from "./react-sortable"
15-
export * from "./types"
13+
} from "sortablejs";
14+
export { ReactSortable } from "./react-sortable";
15+
export * from "./types";

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
CSSProperties,
33
ForwardRefExoticComponent,
44
ReactHTML,
5+
ReactNode,
56
RefAttributes,
67
} from "react";
78
import Sortable, { MoveEvent, Options, SortableEvent } from "sortablejs";
@@ -57,6 +58,7 @@ export interface ReactSortableProps<T>
5758
style?: CSSProperties;
5859
className?: string;
5960
id?: string;
61+
children?: ReactNode;
6062
}
6163

6264
/**

0 commit comments

Comments
 (0)