cornell-dti / nova.cornelldti.org

The new website.
https://www.cornelldti.org/
GNU Affero General Public License v3.0
3 stars 1 forks source link

Make typescript type check json module #353

Closed SamChou19815 closed 3 years ago

SamChou19815 commented 3 years ago

Summary

Enable "resolveJsonModule": true so that TS will ensure the imported json matches the declared interface. It can prevent future type mispatch.

Test Plan

Things can still pass type check in CI.

dti-github-bot commented 3 years ago

[diff-counting] Significant lines: 27.

dti-github-bot commented 3 years ago

[deployment-bot] Deployed to https://603aceabbf1ef7e4cdca864e--cornelldti-old.netlify.app.