quantified-uncertainty / metaforecast

Fetch forecasts from prediction markets/forecasting platforms to make them searchable. Integrate these forecasts into other services.
https://metaforecast.org/
MIT License
57 stars 5 forks source link

Typescript? #7

Closed berekuk closed 2 years ago

berekuk commented 2 years ago

Can I (gradually) convert everything to Typescript? :)

It seems to me that TS have "won" and everyone converts their projects to it eventually (unless they pick something like ReasonML or Elm).

The costs for converting to TS are proportional to the amount of code, so it might be better to start this early.

I think even with "noImplicitAny": false (e.g., most of JS code is a valid TS code) it still might be beneficial for safer refactorings and adopting types gradually.

NunoSempere commented 2 years ago

@OAGr, any thoughts? My guess is that this would be fine in itself but might take too much time.

OAGr commented 2 years ago

I like Typescript, happy for things to gradually move in that direction.

berekuk commented 2 years ago

I added some basic & very forgiving (allowJs=true, strict=false) TypeScript setup in #8.

NunoSempere commented 2 years ago

Closing this issue to keep the number of issues contained.