slab / parchment

Generalized state model for rich-text editors to interface with browser DOM
BSD 3-Clause "New" or "Revised" License
637 stars 146 forks source link

🏷️ Emit type definitions #102

Closed alecgibson closed 2 years ago

alecgibson commented 3 years ago

This change emits type definitions so that consumers can import the compiled module from /dist, but still have type safety in TypeScript.

alecgibson commented 2 years ago

@jhchen could you please explain why TypeScript definitions were removed?

I've got an open issue here: https://github.com/quilljs/parchment/issues/84