-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Description
| declare const html: (strings: TemplateStringsArray, ...values: any[]) => VNode; |
this returns VNode, while if you do htm.bind(h) the inferred return type is VNode | VNode[]
Lines 2 to 4 in d62dcfd
| bind<HResult>( | |
| h: (type: any, props: Record<string, any>, ...children: any[]) => HResult | |
| ): (strings: TemplateStringsArray, ...values: any[]) => HResult | HResult[]; |
Which one of the two types is correct? Should this be changed in the htm/preact type?
Metadata
Metadata
Assignees
Labels
No labels