From 7c1790921fa90b48b9bd26640c2792df9819401a Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 2 Mar 2023 09:53:55 +0000 Subject: [PATCH] Refactor --- .../organizationchart/OrganizationChart.d.ts | 7 ++----- components/tooltip/Tooltip.d.ts | 16 +++++++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/components/organizationchart/OrganizationChart.d.ts b/components/organizationchart/OrganizationChart.d.ts index a3c0fab16..70386f607 100755 --- a/components/organizationchart/OrganizationChart.d.ts +++ b/components/organizationchart/OrganizationChart.d.ts @@ -1,14 +1,11 @@ /** * * OrganizationChart visualizes hierarchical organization data. - *@todo - * Helper API: * - * - OrganizationChartNode - * - * - [Live Demo](https://primevue.org/organizationchart) + * [Live Demo](https://primevue.org/organizationchart) * * @module organizationchart + * */ import { VNode } from 'vue'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; diff --git a/components/tooltip/Tooltip.d.ts b/components/tooltip/Tooltip.d.ts index 3ff0a93c8..34510bddc 100755 --- a/components/tooltip/Tooltip.d.ts +++ b/components/tooltip/Tooltip.d.ts @@ -1,6 +1,10 @@ import { DirectiveBinding, ObjectDirective } from 'vue'; -export declare type TooltipDirectiveModifiers = { +export interface TooltipOptions { + /** + * Text of the tooltip. + */ + value?: string | undefined; /** * When present, it specifies that the component should be disabled. * @defaultValue false @@ -24,15 +28,17 @@ export declare type TooltipDirectiveModifiers = { * @defaultValue true */ fitContent?: boolean | undefined; -}; +} + +export declare type TooltipDirectiveModifiers = {}; export interface TooltipDirectiveBinding extends Omit { /** - * Text of the tooltip. + * Value of the tooltip. */ - value?: string | undefined; + value?: string | TooltipOptions | undefined; /** - * Tooltip modifiers + * Modifiers of the tooltip. * @type {TooltipDirectiveModifiers} */ modifiers?: TooltipDirectiveModifiers | undefined;