Convert routes to TypeScript

Closes #855 (closed)

Part of &33.

What does this MR do?

Converts app/javascript/routes.js and its spec to TypeScript.

Behaviour changes

None.

Verification

From contributors/:

npm run typecheck && npm run lint && TZ=UTC npm run test -- --run

Merge request reports

Loading
Loading