Skip to content

Commit

Permalink
provide suggestions and type checking for elements attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Jan 2, 2024
1 parent bd62505 commit f97a94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/template/-private/dsl/emit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export declare function applySplattributes<
* <div foo={{bar}}></div>
* <AnotherComponent foo={{bar}} />
*/
export declare function applyAttributes(element: Element, attrs: Record<string, AttrValue>): void;
export declare function applyAttributes<T extends Element>(element: T, attrs: Partial<T & Record<string, AttrValue>>): void;

/*
* Applies a modifier to an element or component.
Expand Down

0 comments on commit f97a94b

Please sign in to comment.