icefoganalytics / travel-authorization

0 stars 0 forks source link

Fixup: Broken Types After TypeScript Config Changes #216

Closed klondikemarlen closed 2 months ago

klondikemarlen commented 2 months ago

Relates to:

Context

After updating Typescript configs to get the test suite working, it exposed a bunch of bad types.

Implementation

Add AuthorizedRequest type in authorization middleware, and assert various request where of that type.

Testing Instructions

  1. Run the test suite via dev test (or dev test_api)
  2. Run dev check-types to check that types will not crash on build.
  3. Boot the app via dev up
  4. Log in to the app at http://localhost:8080