bcgov / bcgov/range-api

#523 - TypeScript hardening for runtime-critical path

Open
#529 0 comments 0 reactions 1 assignee Claimed by @brijesh-amin View on GitHub
Dominant language
TypeScript
Stars
1
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Parent: #523

## Objective
Increase type safety where failures are most costly by removing `@ts-nocheck` and tightening types in bootstrap/router/auth entry paths.

## In scope
- Prioritize: `src/index.ts`, `src/router/index.ts`, `src/libs/authmware.ts` (and directly related helpers)
- Remove `@ts-nocheck` in targeted files
- Add/adjust types for request context, auth payloads, and shared utilities

## Acceptance criteria
- Target files compile without `@ts-nocheck`
- No behavior regressions in auth + route bootstrap
- Unit/integration tests pass for touched paths
- New/changed code avoids broad `any` where practical

## Notes
Work in small PRs to keep review manageable.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.