delta icon indicating copy to clipboard operation
delta copied to clipboard

The types are wrong

Open alexgleason opened this issue 7 months ago • 0 comments

https://arethetypeswrong.github.io/?p=quill-delta%405.1.0

The JavaScript appears to set both module.exports and module.exports.default for improved compatibility, but the types only reflect the latter (by using export default). This will cause TypeScript under the node16 module mode to think an extra .default property access is required, which will work at runtime but is not necessary. These types export = an object with a default property instead of using export default.

alexgleason avatar Jul 16 '24 17:07 alexgleason