Thanks for providing this very convenient library !
I found out about this issue mentioning about the state property, holding the eventQueue array.
When I printed out the object to see the available properties, I found out that a lot of them weren't declared in the type :
My goal is to simulate a game dialog behavior where clicking on a message being typed out would just show it entirely.
For this purpose I am clearing the eventQueue manually to remove all pending events and write out the whole message at once.
Thanks for providing this very convenient library !
I found out about this issue mentioning about the
state
property, holding theeventQueue
array.When I printed out the object to see the available properties, I found out that a lot of them weren't declared in the type :
My goal is to simulate a game dialog behavior where clicking on a message being typed out would just show it entirely. For this purpose I am clearing the
eventQueue
manually to remove all pending events and write out the whole message at once.https://jsfiddle.net/eszvo40g/1/
However, Typescript complains because
state
is not defined in the TypewriterClass class. My workaround is currently to extend the type by myself :Would it be possible to add all missing properties in the TypewriterClass class?