Skip to content

fix(api): resolve all TypeScript compilation errors#401

Merged
Movm merged 1 commit intotest-branchfrom
feature/expo-mobile-app
Jan 11, 2026
Merged

fix(api): resolve all TypeScript compilation errors#401
Movm merged 1 commit intotest-branchfrom
feature/expo-mobile-app

Conversation

@Movm
Copy link
Copy Markdown
Collaborator

@Movm Movm commented Jan 11, 2026

Summary

  • Fixed all TypeScript compilation errors in the API codebase
  • Build now passes cleanly with no type errors

Changes

  • Mistral API: Fixed parameter naming (max_tokens → maxTokens) and added type guards
  • Database queries: Added proper type assertions for PostgreSQL query results
  • Interfaces: Extended SharedMediaService, PromptConfig, and DocumentSearchResult with missing properties
  • Hocuspocus: Converted event callbacks to async functions and added type assertions
  • Buffer operations: Added explicit Buffer type casts for gunzip operations
  • User types: Updated UserProfile property references

Test Plan

  • TypeScript build passes (npm run build)
  • All 48 compilation errors resolved

- Fix Mistral API parameter naming (max_tokens → maxTokens)
- Add proper type assertions for database query results
- Extend interfaces for missing properties (SharedMediaService, PromptConfig, DocumentSearchResult)
- Convert Hocuspocus event callbacks to async to match expected signatures
- Add Buffer type casts for gunzip operations
- Update UserProfile references (user_metadata → display_name)
@Movm Movm merged commit b0544cc into test-branch Jan 11, 2026
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.

1 participant