Closed c7h12 closed 3 years ago
Looks like this works. What do you think?
- export const build = function (statics: any) {
+ export const build = function (...statics: any) {
+ statics = statics.flat()
What about This?
export const build = function (statics: string[],...rest:any[]) {
const fields = [0,...rest]
I am using vscode, and the follow code
results in vscode.
The type defining of
jsx
accepts just one param namedstatics
, can it be fixed?https://github.com/nanojsx/nano/blob/18fd227302ee06db06736d520d5bef16a864fec0/src/htm/build.ts#L119