react-speech-kit icon indicating copy to clipboard operation
react-speech-kit copied to clipboard

Support TypeScript

Open dohomi opened this issue 4 years ago • 4 comments

Hello,

is there support for TypeScript planned or anywhere available?

Thanks

dohomi avatar Nov 26 '20 05:11 dohomi

Hello @dohomi, I have tried adding some types

work in progress

alphaolomi avatar Jan 11 '22 23:01 alphaolomi

Oh, I see.. I need this in typescript as well. I just wanted only 'speak' method. Is there any quick fix for now? Please help.

sankarkumar23 avatar May 22 '22 04:05 sankarkumar23

I found it.. const speak = (msg: string) => window.speechSynthesis.speak(new SpeechSynthesisUtterance(msg)); // directly using builtin method. Thanks for your package as well. It is really useful for boarder functionality. Adding typescript support would help to reach more developers.

sankarkumar23 avatar May 22 '22 05:05 sankarkumar23

@MikeyParton , please help us out with this requirement. We need a defined types module too.

asadullahehsan avatar Sep 09 '22 14:09 asadullahehsan