Skip to content

Commit

Permalink
Merge pull request #316 from keima/fix-connectactionsheet-return-type
Browse files Browse the repository at this point in the history
Fix connectActionSheet to exclude ActionSheetProps from return type
  • Loading branch information
bradbyte authored Apr 5, 2024
2 parents e3c2306 + 8211a81 commit f344bdb
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> {
): React.FunctionComponent<OwnProps> {
const ConnectedActionSheet = (props: OwnProps) => {
return (
<Consumer>
Expand Down

0 comments on commit f344bdb

Please sign in to comment.