developit / developit/htm

type of htm/preact and htm directly are different

Open
#244 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

https://github.com/developit/htm/blob/d62dcfdc721e47bc1923a2cb7a01ebd594ab0c25/src/integrations/preact/index.d.ts#L4

this returns VNode, while if you do `htm.bind(h)` the inferred return type is `VNode | VNode[]`

https://github.com/developit/htm/blob/d62dcfdc721e47bc1923a2cb7a01ebd594ab0c25/src/index.d.ts#L2-L4

Which one of the two types is correct? Should this be changed in the htm/preact type?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.