Skip to content

Commit e04f7c5

Browse files
dsempeledorivai
authored andcommitted
Add children to TS types for React 18
1 parent cd8f78d commit e04f7c5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Container.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ container.dropHandler = dropHandlers.reactDropHandler().handler;
77
container.wrapChild = false;
88

99
interface ContainerProps extends ContainerOptions {
10+
children: React.ReactNode;
1011
render?: (rootRef: React.RefObject<any>) => React.ReactElement;
1112
style?: CSSProperties;
1213
}

src/Draggable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const {
66
} = constants;
77

88
export interface DraggableProps {
9+
children: React.ReactNode;
910
render?: () => React.ReactElement;
1011
className?: string;
1112
}

0 commit comments

Comments
 (0)