layout.d.ts: render(), layout(), debug() and clear() accept any layout hierarchy

pull/2851/head
Rob Pilling 2023-05-18 22:39:44 +01:00
parent 223fc5087b
commit efd1891ff5
1 changed files with 4 additions and 4 deletions

View File

@ -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;