Skip to content
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

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

spielcrypto
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Mar 6, 2018

Codecov Report

Merging #640 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62feb73...805c853. Read the comment docs.

children: VNodeChild<object | null>[]
export interface VNode<Attributes = {}> {
nodeName: string
attributes?: Attributes
Copy link
Contributor

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...

Copy link
Contributor

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.

Copy link
Owner

@jorgebucaran jorgebucaran Mar 6, 2018

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.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dancespiele ☝️

Copy link
Contributor

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?

@jorgebucaran jorgebucaran added the types Strings, numbers, booleans label Mar 6, 2018
@jorgebucaran jorgebucaran merged commit 167f7c0 into jorgebucaran:master Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Strings, numbers, booleans
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants