Skip to content

Commit

Permalink
fix element types
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Jan 3, 2024
1 parent d15c057 commit f800d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/template/-private/dsl/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type ResolveOrReturn<T> = T & (<U>(item: U) => () => U);
*/
export type ElementForTagName<Name extends string> = Name extends keyof HTMLElementTagNameMap
? Name extends keyof SVGElementTagNameMap
? HTMLElementTagNameMap[Name] & SVGElementTagNameMap[Name]
? HTMLElementTagNameMap[Name] | SVGElementTagNameMap[Name]
: HTMLElementTagNameMap[Name]
: Name extends keyof SVGElementTagNameMap
? SVGElementTagNameMap[Name]
Expand Down

0 comments on commit f800d57

Please sign in to comment.