tomkp / react-split-pane

React split-pane component
https://tomkp.github.io/react-split-pane
MIT License
3.22k stars 408 forks source link

add children to typings to support removal of same in react 18 typings #818

Open aesser opened 2 years ago

aesser commented 2 years ago

Current typing definition will cause the following error when upgrading to React 18 typing definitions Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Pick<Readonly, never>

This PR adds the children prop.

See also SO answer as reference: https://stackoverflow.com/questions/71788254/react-18-typescript-children-fc/71809927#71809927