Commit d9e9634
committed
refactor: add stricter TypeScript types to mock-db helpers
- Add typed query builder interfaces (SelectQueryBuilder, InsertQueryBuilder,
UpdateQueryBuilder) with proper method chaining types
- Add WhereResult, FromResult, OrderByResult, GroupByResult interfaces
- Add TableQuery interface for findFirst operations with typed params
- Update BillingDbConnection to use generics instead of `any`
- Add JSDoc comments with usage examples throughout
- Add OnInsertCallback, OnUpdateCallback types for tracking operations
- Add TrackedMockDbResult interface for better autocomplete
- Convert MockDbConfig from type to interface with documentation
All 104 billing tests pass with improved type safety.1 parent 80ef6f7 commit d9e9634
2 files changed
+518
-100
lines changed
0 commit comments