From efd1891ff53dbfc6f1123b46ae1a4fb1ea6826b7 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Thu, 18 May 2023 22:39:44 +0100 Subject: [PATCH] layout.d.ts: render(), layout(), debug() and clear() accept any layout hierarchy --- typescript/types/layout.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typescript/types/layout.d.ts b/typescript/types/layout.d.ts index 10166f3e4..cbd769c70 100644 --- a/typescript/types/layout.d.ts +++ b/typescript/types/layout.d.ts @@ -19,12 +19,12 @@ declare module Layout { & { // these actually change T - render(l?: T): void; - layout(l: T): void; + render(l?: Hierarchy): void; + layout(l: Hierarchy): void; - debug(l?: T, c?: ColorResolvable): void; + debug(l?: Hierarchy, c?: ColorResolvable): void; update(): void; // changes layoutObject into a RenderedHierarchy - clear(obj?: T): void; + clear(obj?: Hierarchy): void; forgetLazyState(): void;