antiboredom / p5.vscode

A VS Code extension to generate new p5.js project files.
Other
52 stars 15 forks source link

Typescript support #36

Closed SmartBoy84 closed 2 years ago

SmartBoy84 commented 2 years ago

Change a few things here and there to add basic typescript support (primarily static typing).

antiboredom commented 2 years ago

Hi - thanks for working on this. I'm definitely interested in adding typescript support, but I'm also concerned about making this library typescript-by-default, since this would exclude the majority of its current users. Can you think of a way that we could add in the support while continuing to have the default create javascript projects? Maybe this is as simple as adding the .tasks.json file as you've already done, but leaving sketch.js alone, and having instructions to switch it to a .ts file for typescript users? Very open to other ideas as well - let me know what you think...