Skip to content
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