fix: resolve all TypeScript errors in WAProto and test files

- Changed WAProto.proto syntax from proto3 to proto2 to support required fields
- Regenerated WAProto static files (index.d.ts, index.js) with correct proto2 syntax
- Fixed type annotations in test files (circuit-breaker, sync-action-utils, trace-context)
- Fixed Mock type errors in baileys-event-stream and cache-utils tests
- Fixed LID mapping test expectations to match array type
- All 78 TypeScript errors resolved, 0 remaining

https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
This commit is contained in:
Claude
2026-02-13 21:18:35 +00:00
parent 590d6fdd67
commit 8bea170f3f
9 changed files with 24351 additions and 20635 deletions
+2 -2
View File
@@ -255,8 +255,8 @@ describe('Spans', () => {
addSpanEvent(span, 'event-occurred', { detail: 'value' })
expect(span.events).toHaveLength(1)
expect(span.events[0].name).toBe('event-occurred')
expect(span.events[0].attributes).toEqual({ detail: 'value' })
expect(span.events[0]!.name).toBe('event-occurred')
expect(span.events[0]!.attributes).toEqual({ detail: 'value' })
})
it('should not add event to ended span', () => {