-
Notifications
You must be signed in to change notification settings - Fork 58
Optimized computations #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimized computations #1023
Conversation
…b.dom.augmentation.d.ts
|
tysm for working on this <3 |
| { | ||
| "category": "message", | ||
| "code": 6500, | ||
| "message": "The expected type comes from property 'onclick' which is declared here on type 'Partial<AttributesForElement<HTMLDivElement>>'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE for me -- I think we can explode this out to list the actual available attributes by doing something like & {}
| ['HTMLBodyElement']: GlobalHTMLAttributes; | ||
| ['HTMLDataListElement']: GlobalHTMLAttributes; | ||
| ['HTMLHtmlElement']: GlobalHTMLAttributes; | ||
| ['HTMLPictureElement']: GlobalHTMLAttributes; | ||
| ['HTMLSpanElement']: GlobalHTMLAttributes; | ||
| ['HTMLTitleElement']: GlobalHTMLAttributes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GlobalHTMLAttributes may not be the correct thing to use. For simplicity, I used it like the default value that we see for HTMLElement on line 693.
If there's a better Attributes type to use, I suggest making the change in a separate pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me
Background
Closes #1022.
GlintHtmlElementAttributesMap.HTMLElementandSVGElementto improve performance (runtime should be back to what it was for@glint/[email protected])GlintHtmlElementAttributesMap,GlintSvgElementAttributesMap,HTMLElementMap, andSVGElementMapto help with maintenance.