Files
metabuilder/dbal/development/src/bridges
johndoe6345789 a9e501a788 fix: Repair DBAL TypeScript compilation errors and generate types
FIXED ISSUES:
1. Generated missing types.generated.ts file (364 lines)
   - Codegen script creates 14 entity types from YAML schemas
   - All import errors resolved

2. Fixed blob/index.ts window reference (browser API in Node.js)
   - Removed typeof window check
   - Use try-catch for require() fallback

3. Fixed adapter-factory.ts exactOptionalPropertyTypes errors
   - Only include queryTimeout in options when defined
   - Prisma, Postgres, MySQL adapters updated

4. Fixed factory.ts type assignments
   - Build PrismaClientConfig conditionally
   - Only assign defined values to avoid undefined violations

5. Fixed KV operations
   - batch.ts: Remove explicit undefined from nextCursor return
   - write.ts: Use spread operator to conditionally include expiresAt

6. Fixed websocket-bridge/state.ts
   - Use spread operator to conditionally include auth

7. Fixed workflow-operations.ts description handling
   - Remove explicit undefined assignments
   - Conditionally include optional description field

RESULT:
 DBAL compiles successfully to /dbal/development/dist/
 All exports available in index.d.ts
 Build artifacts complete

Next: Initialize database with db:push

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-15 02:30:42 +00:00
..