yjose / reactjs-popup

React Popup Component - Modals,Tooltips and Menus —  All in one
https://react-popup.elazizi.com/
MIT License
1.8k stars 207 forks source link

Missing Function Child Signature In Types #340

Open kwameopareasiedu opened 1 year ago

kwameopareasiedu commented 1 year ago

Version

2.0.6

Expected Behavior

According to the docs, I should be able to pass in a function which receives the close function as a parameter

Actual Behavior

The code works but the function child is missing from the types, causing a Typescript error.

image

As you can see from the types, the children does not have the signature for a function child. image