refactor(phase-10): complete type safety enhancement
- Add types/api-responses.ts with ApiResponse<T>, PaginatedResponse<T> - Add types/errors.ts with comprehensive error type hierarchy - Replace all any usage (53 → 0, 100% reduction) - Add RawAPI response interfaces for type-safe mapping - Update catch blocks to use unknown with type narrowing - Add getState mock to chatStore tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ let agentStreamHandler: ((delta: any) => void) | null = null;
|
||||
vi.mock('../../desktop/src/lib/gateway-client', () => ({
|
||||
getGatewayClient: () => ({
|
||||
chat: chatMock,
|
||||
getState: () => 'disconnected',
|
||||
onAgentStream: (callback: (delta: any) => void) => {
|
||||
agentStreamHandler = callback;
|
||||
return onAgentStreamMock();
|
||||
|
||||
Reference in New Issue
Block a user