You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for raising this issue. I do not have enough historical context to know why we have different definitions for this. I am open to suggestions. Any contributions are much appreciated.
Prerequisites
Stencil Version
4.26.0
Current Behavior
The type definition of the
h()
function does match the runtime definition.Expected Behavior
Expect the types to match.
System Info
Steps to Reproduce
Look at the implementation:
core/src/runtime/vdom/h.ts
Line 18 in 03a5ff9
Look at the type definition users see:
core/src/declarations/stencil-public-runtime.ts
Lines 630 to 637 in 03a5ff9
Code Reproduction URL
Example:
Result:
Additional Information
Looks like the type definition exported publicly is hand-written, and not derived from the actual types of the implementation.
For example, the implementation accepts
...children
but the public type definition does not.The text was updated successfully, but these errors were encountered: