Skip to content

Commit

Permalink
Merge pull request #140 from louwers/bau-d-ts
Browse files Browse the repository at this point in the history
Fix type errors bau.d.ts
  • Loading branch information
FredericHeem authored Dec 19, 2024
2 parents e03fd9c + 8e47767 commit e92578e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bau/bau.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -135,7 +135,7 @@ export type TagFunc<Result extends HTMLElement> = (
...rest: readonly ChildDom[]
) => Result;

type Tags = Readonly<Record<string, TagFunc<Element>>> & {
type Tags = Readonly<Record<string, TagFunc<HTMLElement>>> & {
[K in keyof HTMLElementTagNameMap]: TagFunc<HTMLElementTagNameMap[K]>;
};

Expand Down

0 comments on commit e92578e

Please sign in to comment.