Skip to content

feat: enable TypeScript strict mode across client & backend with safe migration#267

Open
devxsameer wants to merge 3 commits intoCalebux:mainfrom
devxsameer:feat/ts-strict-mode-migration
Open

feat: enable TypeScript strict mode across client & backend with safe migration#267
devxsameer wants to merge 3 commits intoCalebux:mainfrom
devxsameer:feat/ts-strict-mode-migration

Conversation

@devxsameer
Copy link
Copy Markdown

🚀 Summary

Enables full TypeScript strict mode across both backend and client with an incremental migration approach, improving type safety and preventing common runtime errors.

✅ Changes

  • Enabled strict mode in both tsconfig files
  • Applied strictNullChecks and noImplicitAny safeguards
  • Fixed unsafe string | string[] param handling in routes
  • Replaced invalid deleteSubscription usage with cancelSubscription
  • Updated Supabase API usage (getUserByEmaillistUsers)
  • Resolved router type inference issues
  • Fixed test typing issues to ensure successful build

🧠 Notes

  • Migration performed incrementally to avoid breaking changes
  • Remaining edge cases handled safely without unsafe non-null assertions on user input
  • Build passes successfully after changes

Closes #175

…igration and type safety fixes

- Enabled strict mode in backend and client tsconfig
- Added strictNullChecks and noImplicitAny safeguards
- Fixed unsafe string | string[] param handling across routes
- Replaced invalid deleteSubscription calls with cancelSubscription
- Resolved Supabase API incompatibility (getUserByEmail → listUsers)
- Fixed router type inference issues
- Cleaned up implicit any in tests and ensured build passes

Improves overall type safety and prevents runtime null/undefined errors"
…pe safety fixes

- Enabled strict mode in backend and client tsconfig
- Added strictNullChecks and noImplicitAny safeguards
- Fixed unsafe string | string[] param handling across routes
- Replaced invalid deleteSubscription calls with cancelSubscription
- Resolved Supabase API incompatibility (getUserByEmail → listUsers)
- Fixed router type inference issues
- Cleaned up implicit any in tests and ensured build passes

Improves overall type safety and prevents runtime null/undefined errors
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@devxsameer Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@devxsameer
Copy link
Copy Markdown
Author

@Calebux hey boss, i have done it please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add TypeScript strict mode to both client and backend tsconfig

1 participant