Closed vlazh closed 4 years ago
Have you actually tried using the produced type definition file? Does it work? I tried this in the past, but ran into issues getting it to work properly with Webpack: https://github.com/reedsy/quill-cursors/issues/22
I just tried to compile my project with quill-cursors declaration files, no errors with it.
Awesome. Maybe it was the recent Webpack version bump I did. I'll try to test this later today some time. Thanks for the PR!
Dist directory
For ts types used single entrypoint /dist/index.d.ts Import looks like
Okay, had a quick play. Looks great! One small change, please. Can we update index.ts
to export the Cursor
class as well, in case people need to reference it eg in variable declarations:
export {QuillCursors as default, Cursor};
Can you please also update CHANGELOG.md
Done. But I don't now how looks CHANGELOG now.
Because sources written in typescript it worth nothing to output original declation files. Typescript users (I am among them) will be happy!