nightscout / cgm-remote-monitor

nightscout web monitor
GNU Affero General Public License v3.0
2.35k stars 71.33k forks source link

WIP: Added typescript support #8222

Closed TimVroom closed 4 months ago

TimVroom commented 4 months ago

Attempting to allow the slow conversion to TS. Easy to change .js files to .ts files, since babel will still handle the transpiling. Made a first attempt at the server.ts to get it started.

If this is not something that is wanted feel free to decline.

related to/for #8074

Changing everything to stricter types has not been done yet

[x] local dev ts errors and transpiling (through docker) [ ] test for full production build [ ] Make at least some strict types for deterministic data (like env/settings, user input should be any (for now))