Skip to content

Commit

Permalink
fix: use react-popover Helpers type to define react-tooltip render-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Jul 2, 2019
1 parent 3a86bcc commit c37a41c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-tooltip/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import styled from '@emotion/styled/macro';
import Popover, {
Container as PopoverContainer,
Arrow,
type Helpers,
} from '@quid/react-popover';

type RenderTooltipProps = {
Expand All @@ -31,7 +32,7 @@ type Props = {
modifiers?: Modifiers,
eventsEnabled?: boolean,
positionFixed?: boolean,
children: ({ ref: React.ElementRef<any>, toggle: () => void }) => React.Node,
children: ({ ref: React.ElementRef<any> } & Helpers) => React.Node,
};

const Tooltip = ({ renderTooltip, ...props }: Props) => (
Expand Down

0 comments on commit c37a41c

Please sign in to comment.