Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix types according with ultradom types#640

Merged
jorgebucaran merged 1 commit into
jorgebucaran:masterfrom
spielcrypto:master
Mar 6, 2018
Merged

fix types according with ultradom types#640
jorgebucaran merged 1 commit into
jorgebucaran:masterfrom
spielcrypto:master

Conversation

@spielcrypto

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Mar 6, 2018

Copy link
Copy Markdown

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.

Comment thread hyperapp.d.ts
children: VNodeChild<object | null>[]
export interface VNode<Attributes = {}> {
nodeName: string
attributes?: Attributes

Copy link
Copy Markdown
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
Copy Markdown
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.

@jorgebucaran jorgebucaran Mar 6, 2018

Copy link
Copy Markdown
Owner

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
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@dancespiele ☝️

Copy link
Copy Markdown
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