fix: add return type to connectActionSheet (#273)

This avoids importing hoist-non-react-statics in the built d.ts file causing errors when using typescript with esModuleInterop = false
This commit is contained in:
Danilo Bürger authored and GitHub committed 2022-10-03 13:35:33 -05:00
1 parent 9c6f5be31d
commit f46a5cfc47
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ import { ActionSheetProps } from './types';
export default function connectActionSheet<OwnProps = any>(
WrappedComponent: React.ComponentType<OwnProps & ActionSheetProps>
) {
): React.FunctionComponent<OwnProps & ActionSheetProps> {
const ConnectedActionSheet = (props: OwnProps) => {
return (
<Consumer>