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
The resolved types use export default where the JavaScript file appears to use module.exports =. This will cause TypeScript under the node16 module mode to think an extra .default property access is required, but that will likely fail at runtime. These types should use export = instead of export default.
This was a problem in mermaid-js/mermaid#5825, as we had to @ts-ignore all the places where rough was used.
Adding a .default does show the types.
The text was updated successfully, but these errors were encountered:
https://arethetypeswrong.github.io/[email protected]
Incorrect default export
The resolved types use export default where the JavaScript file appears to use module.exports =. This will cause TypeScript under the node16 module mode to think an extra .default property access is required, but that will likely fail at runtime. These types should use export = instead of export default.
This was a problem in mermaid-js/mermaid#5825, as we had to
@ts-ignore
all the places where rough was used.Adding a
.default
does show the types.The text was updated successfully, but these errors were encountered: