-
Notifications
You must be signed in to change notification settings - Fork 780
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
fix types according with ultradom types #640
Conversation
Codecov Report
@@ Coverage Diff @@
## master #640 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 144 144
Branches 44 44
=====================================
Hits 144 144 Continue to review full report at Codecov.
|
children: VNodeChild<object | null>[] | ||
export interface VNode<Attributes = {}> { | ||
nodeName: string | ||
attributes?: Attributes |
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.
but attributes
are not optional, they are required, isn't it?
maybe key
is optional...
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.
I know they can be null
but I’m not sure if they can be absent entirely.
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.
h(nodeName, null, null)
... is okay.
But
{
nodeName, attributes: null, children: null
}
... is not.
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.
@dancespiele ☝️
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.
Ah, so the h
createNode
function handles that for you?
No description provided.