fix(audit-api): resolve TypeScript linting errors for type safety#210
fix(audit-api): resolve TypeScript linting errors for type safety#2104eckd wants to merge 2 commits intoclaude/track-development-issues-jXranfrom
Conversation
- Remove unused JWT import from auth module - Replace implicit 'any' casts with proper Prisma enum types (AuditServiceType, AuditStatus, AuditPriority) - Remove unnecessary eslint-disable directive now that types are properly specified - Generate Prisma client to ensure type exports are available Fixes merge-to-parent by resolving all ESLint errors and TypeScript type issues. https://claude.ai/code/session_019tv2bPxnA5omaHZC1NjBWg
Code Signature VerificationStatus: ✅ All checks passed Commit Signatures
Author Verification
How to Sign CommitsOption 1: SSH Signing (Recommended)
Option 2: GPG Signing
Automated security verification by VLN Security Bot |
- Add 'as const' to VALID_SERVICE_TYPES array for literal type inference - Use proper type assertion for serviceType validation without explicit any - Ensure types are strictly compatible with Prisma enum types - All linting and build checks now pass This resolves the Vercel build failure by using TypeScript's type system properly instead of relying on implicit any casts. https://claude.ai/code/session_019tv2bPxnA5omaHZC1NjBWg
Code Signature VerificationStatus: ✅ All checks passed Commit Signatures
Author Verification
How to Sign CommitsOption 1: SSH Signing (Recommended)
Option 2: GPG Signing
Automated security verification by VLN Security Bot |
Fixes merge-to-parent by resolving all ESLint errors and TypeScript type issues.
https://claude.ai/code/session_019tv2bPxnA5omaHZC1NjBWg