From e1339614e8b146d5cd2e32a5a27d651073733419 Mon Sep 17 00:00:00 2001 From: Serhii Kulykov Date: Fri, 4 Oct 2024 12:03:38 +0300 Subject: [PATCH] docs: fix tooltip JSDoc to use correct parameter name (#7939) --- packages/tooltip/src/vaadin-tooltip-mixin.js | 4 ++-- packages/tooltip/src/vaadin-tooltip.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tooltip/src/vaadin-tooltip-mixin.js b/packages/tooltip/src/vaadin-tooltip-mixin.js index d8c4bddb8d..aefc4d5b54 100644 --- a/packages/tooltip/src/vaadin-tooltip-mixin.js +++ b/packages/tooltip/src/vaadin-tooltip-mixin.js @@ -381,7 +381,7 @@ export const TooltipMixin = (superClass) => * Sets the default focus delay to be used by all tooltip instances, * except for those that have focus delay configured using property. * - * @param {number} delay + * @param {number} focusDelay */ static setDefaultFocusDelay(focusDelay) { defaultFocusDelay = focusDelay != null && focusDelay >= 0 ? focusDelay : DEFAULT_DELAY; @@ -401,7 +401,7 @@ export const TooltipMixin = (superClass) => * Sets the default hover delay to be used by all tooltip instances, * except for those that have hover delay configured using property. * - * @param {number} delay + * @param {number} hoverDelay */ static setDefaultHoverDelay(hoverDelay) { defaultHoverDelay = hoverDelay != null && hoverDelay >= 0 ? hoverDelay : DEFAULT_DELAY; diff --git a/packages/tooltip/src/vaadin-tooltip.d.ts b/packages/tooltip/src/vaadin-tooltip.d.ts index 3b5c855fac..427270aca3 100644 --- a/packages/tooltip/src/vaadin-tooltip.d.ts +++ b/packages/tooltip/src/vaadin-tooltip.d.ts @@ -65,7 +65,7 @@ declare class Tooltip extends TooltipMixin(ThemePropertyMixin(ControllerMixin(El * Sets the default hover delay to be used by all tooltip instances, * except for those that have hover delay configured using property. */ - static setDefaultHoverDelay(delay: number): void; + static setDefaultHoverDelay(hoverDelay: number): void; } declare global {