Closed ivankoop closed 2 years ago
I think this type needs to be
children?: ReactNode | Function;
as MediaQuery component does check forif (typeof children === 'function')
Also amend the Component.tsx interface MediaQueryProps, with the type change, as the d.ts is generated from that file.
Thanks @jafin , I'll take a look on those.
Fixed in another PR
Fixes issue #290
Description
Added missing children prop type to MediaQueryProps