Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 2, 2023
1 parent c0a72cb commit 7c17909
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 2 additions & 5 deletions components/organizationchart/OrganizationChart.d.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
16 changes: 11 additions & 5 deletions components/tooltip/Tooltip.d.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -24,15 +28,17 @@ export declare type TooltipDirectiveModifiers = {
* @defaultValue true
*/
fitContent?: boolean | undefined;
};
}

export declare type TooltipDirectiveModifiers = {};

export interface TooltipDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
/**
* 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;
Expand Down

0 comments on commit 7c17909

Please sign in to comment.