crx icon indicating copy to clipboard operation
crx copied to clipboard

TypeScript

Open NN--- opened this issue 6 years ago • 4 comments

What do you think about moving to TypeScript?

NN--- avatar Mar 13 '18 11:03 NN---

What are the pros?

PavelVanecek avatar Mar 13 '18 23:03 PavelVanecek

I'd like to learn but I'm not sure it's bringing a lot of value to this project. Do you think it would simplify some aspects of it?

thom4parisot avatar Feb 03 '19 17:02 thom4parisot

Personally, I don't know how people maintain big projects without typings :) I have worked on such one and it is really hard especially when you see the code first time.

BTW, you can use JavaScript with TypeScript type checker: https://github.com/Microsoft/TypeScript/wiki/Type-Checking-JavaScript-Files

NN--- avatar Feb 03 '19 18:02 NN---

I’m keen on adding a TS definition file. It would be a nice first step.

I’m willing to have a go at it while porting the code to be an ESM first module.

thom4parisot avatar Aug 24 '21 15:08 thom4parisot