pediatric-ai-scribe-v3/src
Daniel b10147cf81 chore(ts): remove @ts-nocheck from 3 small backend files
Files de-nocheck'd with proper minimal types:

- src/db/database.ts: cast (db as any)._cleanupInterval — intentional
  runtime augmentation of the exported db handle.
- src/routes/audioBackups.ts: type the new Promise<Buffer>(...) wrappers
  around zlib.gzip / zlib.gunzip so .length is recognized.
- src/routes/documents.ts: var config: any for the S3 client config
  built piecemeal across env-var branches.

Still @ts-nocheck (deferred — need real interface design):
- src/utils/ai.ts, embeddings.ts (multi-provider AI request shapes)
- src/routes/transcribe.ts, adminConfig.ts (Node 20 File global path)
- src/routes/auth.ts (response.json() unknown in TS6)

npm run typecheck → 0 errors.
2026-04-27 23:29:37 +02:00
..
db chore(ts): remove @ts-nocheck from 3 small backend files 2026-04-27 23:29:37 +02:00
middleware chore(ts): Phase 2-3 — rename server + all backend .js to .ts 2026-04-27 22:22:29 +02:00
routes chore(ts): remove @ts-nocheck from 3 small backend files 2026-04-27 23:29:37 +02:00
utils chore(ts): type fixes after .js → .ts rename — typecheck now clean 2026-04-27 22:25:17 +02:00