Skip to content

Commit

Permalink
fix: update tooltip typings (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfecht authored and FezVrasta committed Aug 28, 2018
1 parent 048404a commit 16e9607
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/tooltip/index.d.ts
Expand Up @@ -5,10 +5,12 @@ export type TitleFunction = () => string;
export type Delay = Record<'show' | 'hide', number>;

export interface Options {
placement?: Placement;
arrowSelector?: string;
innerSelector?: string;
container?: HTMLElement | string;
delay?: number | Delay;
html?: boolean;
placement?: Placement;
template?: string;
title?: string | HTMLElement | TitleFunction;
/**
Expand All @@ -17,6 +19,7 @@ export interface Options {
* e.g. 'hover focus'
*/
trigger?: string;
closeOnClickOutside?: boolean;
boundariesElement?: Boundary | HTMLElement;
offset?: number | string;
popperOptions?: PopperOptions;
Expand All @@ -34,6 +37,8 @@ declare class Tooltip {
dispose(): void;

toggle(): void;

updateTitleContent(title: string | HTMLElement): void;
}

export default Tooltip;

0 comments on commit 16e9607

Please sign in to comment.