Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
type declaration - fix missing
children
prop (#819)
* fix missing `children` prop React 18's types are more strict and the missing `children` prop results in this typescript error being thrown when using the component ``` Type '{ children: Element[]; css: SerializedStyles; split: "vertical"; minSize: number; maxSize: number; onDragStarted: () => void; onDragFinished: (newSize: number) => void; size: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<SplitPane> & { css?: Interpolation<Theme>; } & Pick<...> & InexactPartial<...> & InexactPartial<...>'. Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<SplitPane> & { css?: Interpolation<Theme>; } & Pick<...> & InexactPartial<...> & InexactPartial<...>'.ts(2322) ``` * make children prop optional
- Loading branch information