From 8e477670f1af962d94e6eee06c4f395b616e3143 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Thu, 19 Dec 2024 00:50:27 +0100 Subject: [PATCH] Fix type errors bau.d.ts --- bau/bau.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bau/bau.d.ts b/bau/bau.d.ts index 97b864c9..d86acf79 100644 --- a/bau/bau.d.ts +++ b/bau/bau.d.ts @@ -32,7 +32,7 @@ export interface BindInput { readonly deps: Deps; readonly render: (input: { element: HTMLElement; - readonly renderItem: RenderItem; + readonly renderItem: typeof RenderItem; readonly oldValues: any[]; }) => (...args: readonly any[]) => HTMLElement | StatePrimitive; readonly renderItem?: typeof RenderItem; @@ -135,7 +135,7 @@ export type TagFunc = ( ...rest: readonly ChildDom[] ) => Result; -type Tags = Readonly>> & { +type Tags = Readonly>> & { [K in keyof HTMLElementTagNameMap]: TagFunc; };