We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using vscode, and the follow code
export const Article = ({ html }: { html: string }) => { return jsx`<div class="article-content">${html}</div>`; };
results in vscode.
The type defining of jsx accepts just one param named statics, can it be fixed?
jsx
statics
nano/src/htm/build.ts
Line 119 in 18fd227
The text was updated successfully, but these errors were encountered:
Looks like this works. What do you think?
- export const build = function (statics: any) { + export const build = function (...statics: any) { + statics = statics.flat()
Sorry, something went wrong.
What about This?
export const build = function (statics: string[],...rest:any[]) { const fields = [0,...rest]
094eeb8
No branches or pull requests
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?nano/src/htm/build.ts
Line 119 in 18fd227
The text was updated successfully, but these errors were encountered: