|
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[]
|
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?