Skip to content

Commit

Permalink
fix: add return type to connectActionSheet (#273)
Browse files Browse the repository at this point in the history
This avoids importing hoist-non-react-statics in the built d.ts file causing errors when using typescript with esModuleInterop = false
  • Loading branch information
danilobuerger authored Oct 3, 2022
1 parent 9c6f5be commit f46a5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectActionSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f46a5cf

Please sign in to comment.