From 6a11ba6f50deb7c9960cf0cb9e9643f9e0b1038f Mon Sep 17 00:00:00 2001 From: David Alberto Adler Date: Thu, 21 Dec 2023 22:09:07 +0000 Subject: [PATCH 1/3] Export class Viz --- packages/viz/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/viz/types/index.d.ts b/packages/viz/types/index.d.ts index 04fc90cb..cf7ea29e 100644 --- a/packages/viz/types/index.d.ts +++ b/packages/viz/types/index.d.ts @@ -8,7 +8,7 @@ export const engines: string[] export function instance(): Promise -declare class Viz { +export declare class Viz { get graphvizVersion(): string get formats(): string[] get engines(): string[] From 4ab090f4ab113604ffa6ee1116423211b26fa143 Mon Sep 17 00:00:00 2001 From: David Alberto Adler Date: Thu, 28 Dec 2023 11:47:28 +0000 Subject: [PATCH 2/3] Update index.d.ts --- packages/viz/types/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/viz/types/index.d.ts b/packages/viz/types/index.d.ts index cf7ea29e..40aebee2 100644 --- a/packages/viz/types/index.d.ts +++ b/packages/viz/types/index.d.ts @@ -9,6 +9,10 @@ export const engines: string[] export function instance(): Promise export declare class Viz { + /** Cannot construct `Viz` class directly use `instance()` instead */ + private constructor() { + throw new Error("Cannot construct `Viz` class directly use `instance()` instead"); + } get graphvizVersion(): string get formats(): string[] get engines(): string[] From 18b0514fa51a5b6afabc37340b817822b6a69b57 Mon Sep 17 00:00:00 2001 From: David Alberto Adler Date: Thu, 28 Dec 2023 11:48:33 +0000 Subject: [PATCH 3/3] Update index.d.ts --- packages/viz/types/index.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/viz/types/index.d.ts b/packages/viz/types/index.d.ts index 40aebee2..bebb3aab 100644 --- a/packages/viz/types/index.d.ts +++ b/packages/viz/types/index.d.ts @@ -10,9 +10,7 @@ export function instance(): Promise export declare class Viz { /** Cannot construct `Viz` class directly use `instance()` instead */ - private constructor() { - throw new Error("Cannot construct `Viz` class directly use `instance()` instead"); - } + private constructor() get graphvizVersion(): string get formats(): string[] get engines(): string[]