tokio-rs / website

Website for the Tokio project
https://tokio.rs
MIT License
227 stars 328 forks source link

Turn remaining files into TypeScript source #758

Closed junlarsen closed 3 months ago

junlarsen commented 3 months ago

Hi! This is a small patch for turning the remainder of the source files into TypeScript.

While I was working on this patch, I noticed we're compiling TypeScript with strict: false which means we lose most of the safety TypeScript gives us. I would be willing to do the necessary changes to enable strict mode in a different patch :smiley:

As with other parts of the codebase, there are a lot of untyped/loosely typed things which I've just left as-is for now. I've left some TODO comments in the relevant places. I would like some feedback before I commit to any larger changes!

Let me know if there are any questions or concerns. Thanks!

Darksonn commented 3 months ago

I merged the other PR with automatic formatting. Please resolve the merge conflicts.

junlarsen commented 3 months ago

I merged the other PR with automatic formatting. Please resolve the merge conflicts.

Thanks! I have resolved the conflicts now