KillerCodeMonkey / ngx-quill

Angular (>=2) components for the Quill Rich Text Editor
MIT License
1.79k stars 262 forks source link

Add type to event emitter onEditorCreated #1868

Closed fabdeceglia closed 5 months ago

fabdeceglia commented 5 months ago

Hi,

i am currently working with ngx-quill version 23.0.2 in a Angular 16 application. I've successfully integrated the editor in the app, but i want to understand if there is a way to have the type on the emitter of the editor created. From the api i see that any is emitted:

image

But from the debugger i type is shown:

image

It there a plan to have that class/interface exposed? Would be nice to have the API of the component in order to access easly all the exposed method and attributes.

KillerCodeMonkey commented 5 months ago

The parameter is just a Quill instance.

i just avoided to type it a long time ago because each import of quill breaks server side rendering, but i guess i can just import it as "type"

KillerCodeMonkey commented 5 months ago

so as a workaround you can type it like import Quill from 'quill' and Quill is the type of the parameter

KillerCodeMonkey commented 5 months ago

i added the type in version 26.0.2