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
Expected 2 arguments, but got 1.ts(2554)
index.d.ts(57, 71): An argument for 'children' was not provided.
This can be solved by adding a second entry in the d.ts:
/** Creates a fragment virtual element (Vnode). */fragment(attrs: Lifecycle<any,any>&{[key: string]: any},children: ChildArrayOrPrimitive): Vnode<any,any>;fragment(children: ChildArrayOrPrimitive): Vnode<any,any>;
The text was updated successfully, but these errors were encountered:
@spacejack Also, the TS defs need updated to accept variadic children to align with the current hyperscript API (the ...args in m(Comp, ...args) and in m.fragment(...args) is handled the exact same way behind the scenes, so they should have identical prototypes).
Error:
This can be solved by adding a second entry in the d.ts:
The text was updated successfully, but these errors were encountered: