From 21562bed8ff822669ac4ab51ce07d5bab84e54a6 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 5 Mar 2024 09:09:57 -0500 Subject: [PATCH] Tooltip fix Typescript def of events --- components/lib/tooltip/tooltip.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/tooltip/tooltip.d.ts b/components/lib/tooltip/tooltip.d.ts index 8514e92cfc..d9177c699a 100644 --- a/components/lib/tooltip/tooltip.d.ts +++ b/components/lib/tooltip/tooltip.d.ts @@ -145,17 +145,17 @@ export declare class Tooltip extends React.Component { * Used to reload target events. In some cases, the target element can be hidden initially. Later, when this element becomes visible, it will be necessary to bind tooltip events to this element. * @param {string | string[] | HTMLElement | React.RefObject | undefined} target - Target element or if undefined will use current target. */ - public updateTargetEvents(target: string | string[] | HTMLElement | React.RefObject | undefined): void; + public updateTargetEvents(target?: string | string[] | HTMLElement | React.RefObject | undefined): void; /** * Used to load target events. * @param {string | string[] | HTMLElement | React.RefObject | undefined} target - Target element or if undefined will use current target. */ - public loadTargetEvents(target: string | string[] | HTMLElement | React.RefObject | undefined): void; + public loadTargetEvents(target?: string | string[] | HTMLElement | React.RefObject | undefined): void; /** * Used to unload target events. * @param {string | string[] | HTMLElement | React.RefObject | undefined} target - Target element or if undefined will use current target. */ - public unloadTargetEvents(target: string | string[] | HTMLElement | React.RefObject | undefined): void; + public unloadTargetEvents(target?: string | string[] | HTMLElement | React.RefObject | undefined): void; /** * Used to get container element. * @return {HTMLElement} Container element