refactor(types): remove unused exports from websocket.ts #170

Merged
jack merged 8 commits from refactor/143-cleanup-websocket-types into main 2026-01-24 17:06:10 +00:00
Owner

Summary

Remove 3 unused exports from websocket.ts:

  • WorkerConnectionOptions interface
  • isWorkerToBackendMessage type guard function
  • isBackendToWorkerMessage type guard function

These were designed for type-safe WebSocket message validation but the actual implementation uses inline type assertions instead.

Reduced file from 235 to 178 lines (-57 lines, -24%).

Refs #143

Test Plan

  • pnpm run typecheck passes
  • Verified via grep that none of the removed exports are used anywhere
## Summary Remove 3 unused exports from websocket.ts: - `WorkerConnectionOptions` interface - `isWorkerToBackendMessage` type guard function - `isBackendToWorkerMessage` type guard function These were designed for type-safe WebSocket message validation but the actual implementation uses inline type assertions instead. Reduced file from 235 to 178 lines (-57 lines, -24%). Refs #143 ## Test Plan - [x] `pnpm run typecheck` passes - [x] Verified via grep that none of the removed exports are used anywhere
refactor(types): remove unused exports from websocket.ts
All checks were successful
CI / check (pull_request) Successful in 0s
CI / build (pull_request) Successful in 42s
CI / validate-plugin (pull_request) Successful in 34s
b18e9ced34
Remove 3 unused exports:
- WorkerConnectionOptions interface
- isWorkerToBackendMessage type guard function
- isBackendToWorkerMessage type guard function

These were designed for type-safe WebSocket message validation but
the actual implementation uses inline type assertions instead.

Reduced file from 235 to 178 lines (-57 lines, -24%).

Refs #143

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
jonas.hanisch force-pushed refactor/143-cleanup-websocket-types from b18e9ced34
All checks were successful
CI / check (pull_request) Successful in 0s
CI / build (pull_request) Successful in 42s
CI / validate-plugin (pull_request) Successful in 34s
to 2c484c7c9c
All checks were successful
CI / build (pull_request) Successful in 46s
2026-01-24 16:49:10 +00:00
Compare
Merge branch 'main' into refactor/143-cleanup-websocket-types
All checks were successful
CI / build (pull_request) Successful in 1m2s
535a441721
Merge branch 'main' into refactor/143-cleanup-websocket-types
All checks were successful
CI / build (pull_request) Successful in 1m13s
e36dfd8d1a
Merge branch 'main' into refactor/143-cleanup-websocket-types
All checks were successful
CI / build (pull_request) Successful in 1m16s
c611560573
Merge branch 'main' into refactor/143-cleanup-websocket-types
All checks were successful
CI / build (pull_request) Successful in 1m16s
de91385985
Merge branch 'main' into refactor/143-cleanup-websocket-types
All checks were successful
CI / build (pull_request) Successful in 1m14s
b54fdcb544
Merge branch 'main' into refactor/143-cleanup-websocket-types
All checks were successful
CI / build (pull_request) Successful in 1m14s
dfb81332e7
Merge branch 'main' into refactor/143-cleanup-websocket-types
All checks were successful
CI / build (pull_request) Successful in 47s
3482cf4d6f
jack merged commit 04d5431591 into main 2026-01-24 17:06:10 +00:00
Sign in to join this conversation.
No description provided.