Skip to content

Update react-tooltip.d.ts #784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions react-tooltip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ export interface TooltipProps {
// Time delay for showing popup
delayShow?: number;
// Custom event to trigger tooltip
event?: string;
event?: keyof HTMLElementEventMap | string;
// Custom event to hide tooltip
// (this requires the event prop as well)
eventOff?: string;
eventOff?: keyof HTMLElementEventMap | string;
// When set to true, custom event's propagation
// mode will be captue
isCapture?: boolean;
// Global event to hide tooltip
globalEventOff?: string;
globalEventOff?: keyof HTMLElementEventMap | string;
// Function to dynamically generate the tooltip content
getContent?: GetContent;
// Callback after tooltip is shown
Expand Down Expand Up @@ -109,6 +109,7 @@ export interface TooltipProps {
}

// ReactTooltip component is the default export
// You can overview demo examples here: https://bddeu.csb.app
export default class ReactTooltip extends React.Component<TooltipProps> {
// static methods
static show: (target: Element) => {};
Expand Down