ufosc / Alarm-Clock

Waking up is serious business.
11 stars 53 forks source link

Feature/migrate typescript #52

Closed kanielv closed 8 months ago

kanielv commented 8 months ago

Added TypeScript and moved all the screens to TS. Everyone should start writing their code in Typescript but if they want to continue writing in JS while they get used to TS that is also fine as any vanilla JS is valid TS.

Changes to the project include a new script that runs the TS type checker with the "npm run ts:check" command. Will add this to the start script at a later date.

I also modified the style folder to where all the styles are exported from a index.ts folder instead of the separate folder. When adding these global styles to your components import from index.ts instead.