From af81cbad0445537be87337d5eb4335f6d7374142 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Wed, 14 May 2025 22:37:32 +0100 Subject: [PATCH] layout: `render()` is called on the layout object --- typescript/types/layout.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/types/layout.d.ts b/typescript/types/layout.d.ts index 4329d0831..e15d86b64 100644 --- a/typescript/types/layout.d.ts +++ b/typescript/types/layout.d.ts @@ -153,6 +153,6 @@ declare module Layout { r?: Rotation, } | { type: "custom", - render: (h: RenderedHierarchy) => void, + render: (this: RenderedHierarchy, h: RenderedHierarchy) => void, }; }