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 144Continue 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.
but attributes are not optional, they are required, isn't it?
maybe key is optional...
There was a problem hiding this comment.
I know they can be null but I’m not sure if they can be absent entirely.
There was a problem hiding this comment.
h(nodeName, null, null)... is okay.
But
{
nodeName, attributes: null, children: null
}
... is not.
There was a problem hiding this comment.
Ah, so the hcreateNode function handles that for you?
No description provided.