bcgov / bcgov/range-api

#523 - Reduce any usage in db2 model/query layer

Open
#530 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
Improve data-layer correctness by reducing broad `any` usage and introducing stronger query/model typings.

## In scope
- Start with high-traffic entities (e.g., plan/user) in db2 model/query paths
- Add typed DTO/query result contracts for selected models
- Refactor shared model base utilities where needed to support stronger typing

## Acceptance criteria
- Measurable reduction of `any` in touched db2 files
- Typed create/update/find paths for selected entities
- No query behavior regressions in existing tests
- Additional tests for edge cases introduced by typing changes

## Notes
Deliver incrementally to avoid high-risk all-at-once migration.

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.