From 381f2e91f3fa71a96b43b548a5f060ad018f3bbd Mon Sep 17 00:00:00 2001 From: Andrei Matei Date: Thu, 21 Dec 2023 17:00:53 -0500 Subject: [PATCH] fix typescript signature for tooltip The tooltip function doesn't take a bool; it takes a custom object. --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index f751299..824deba 100644 --- a/index.d.ts +++ b/index.d.ts @@ -29,8 +29,8 @@ declare module "d3-flame-graph" { minFrameSize(): number; title(val: string): FlameGraph; title(): string; - tooltip(val: boolean): FlameGraph; - tooltip(): boolean; + tooltip(val: any): FlameGraph; + tooltip(): any; transitionDuration(val: number): FlameGraph; transitionDuration(): number; transitionEase(val: string): FlameGraph;