Files
frontend/src/services/core/index.ts

37 lines
1013 B
TypeScript
Raw Normal View History

2026-04-13 01:30:37 +08:00
export { api, WS_URL, TOKEN_KEY, REFRESH_TOKEN_KEY } from './api';
export { ApiError, isNetworkError } from './api';
2026-04-13 01:30:37 +08:00
export type { ApiResponse, PaginatedData } from './api';
export { wsService } from './wsService';
export type {
WSMessage,
WSMessageType,
WSChatMessage,
WSReadMessage,
WSTypingMessage,
WSRecallMessage,
WSNotificationMessage,
WSAnnouncementMessage,
WSGroupChatMessage,
WSGroupTypingMessage,
GroupNoticeType,
WSGroupNoticeMessage,
WSGroupMentionMessage,
WSGroupReadMessage,
WSGroupRecallMessage,
WSCallIncomingMessage,
WSCallAcceptedMessage,
WSCallRejectedMessage,
WSCallBusyMessage,
WSCallEndedMessage,
WSCallPeerMutedMessage,
WSCallInvitedMessage,
WSCallAnsweredElsewhereMessage,
WSErrorMessage,
WSServerMessage,
} from './wsService';
export { handleError, createErrorHandler, safeAsync, createAppError } from './errorHandler';
export type { AppError, ErrorHandlerOptions } from './errorHandler';
export { AppErrorCode } from './errorHandler';