Closed matt-tingen closed 2 years ago
This outdated approche, please check then next links for full understanding how default props types is casting now
// it should be enough:
export type PinchZoomProps = JSX.LibraryManagedAttributes<typeof PinchZoomComp,React.ComponentProps<typeof PinchZoomComp>>
Thanks!
Thanks for the quick reviews and release!
This exports types which are part of public APIs. The component props type requires a separate type because on how
defaultProps
is treated on components.