Open eritbh opened 1 year ago
old broken docs build process
Excuse me, but I fixed that at some point :P
Other than that, sounds like a plan. I'd add a step where we update our contributing docs where we state that we use typescript and link to a getting started resource. Just in the interest of making contributing still as accessible as possible.
This has been discussed some in the past on Discord, but I'm making an issue for it now to collect previous thoughts because some of the work I've been doing recently would benefit a lot from TS support and it's motivating me to revisit my old proof of concept for this.
Using TS in toolbox would be an incremental thing and would probably follow roughly these steps:
tsc
as part of our build process (allowJs
without any code change and make sure the build still functions)// @ts-check
,checkJs
)TBHelpers.js
,TBApi.js
object
? (please don't just give up and type everything asobject
))noImplicitAny
and other stricter parsing options as we work through the rest of the extensionSpecific areas where TS would be useful:
@template
is cumbersome and we don't really use it much