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
We have just started to use preact-render-to-string/jsx and noticed TypeScript complains because jsx.d.ts includes two default exports.
preact-render-to-string/jsx
jsx.d.ts
As a temporary workaround we have created our own definition and referenced it via tsconfig's paths option.
paths
We could provide a fix for this if desired, consisting in removing the last export default render;, which looks like an overlook.
export default render;
The text was updated successfully, but these errors were encountered:
Good catch, feel free to send a PR. The last default export is definitely a mistake and shouldn't be there.
Sorry, something went wrong.
Thanks! Here's the PR #329
Successfully merging a pull request may close this issue.
We have just started to use
preact-render-to-string/jsx
and noticed TypeScript complains becausejsx.d.ts
includes two default exports.As a temporary workaround we have created our own definition and referenced it via tsconfig's
paths
option.We could provide a fix for this if desired, consisting in removing the last
export default render;
, which looks like an overlook.The text was updated successfully, but these errors were encountered: