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