You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
/** The class name(s) for this virtual element, as a space-separated list. */
className?: string;
from Attributes as it is already included in HTMLElement.
This way gives a complete intellisense of all html elements also including all style properties. Mutable extension must be there to convert readonly style into mutable one. Partial to make all props optional.
The text was updated successfully, but these errors were encountered:
interface Attributes extends Lifecycle<any, any> {
style?: Partial<CSSStyleDeclaration>;
/** The class name(s) for this virtual element, as a space-separated list. */
class?: string;
/** A key to optionally associate with this element. */
key?: string | number;
/** Any other virtual element properties, including attributes and event handlers. */
[property: string]: any;
}
So MutablePartial is not necessary. Seems to work just fine for me ;)
@czb thanks for taking the time to look into this, and it looks promising. Unfortunately I've been swamped at work lately and haven't had a lot of time to try this out.
If you get tired of waiting you're always free to create a PR for DefinitelyTyped and add the appropriate tests.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I propose to add all the html properties from TypeScript lib into the HyperScript.
Specifically I propose to add:
and to modify
into
And then to remove
from
Attributes
as it is already included inHTMLElement
.This way gives a complete intellisense of all html elements also including all
style
properties. Mutable extension must be there to convertreadonly style
into mutable one. Partial to make all props optional.The text was updated successfully, but these errors were encountered: