refactor(types): 统一类型导入导出管理

- 将类型定义从各个模块统一到 type 文件中进行管理
- 移除 auth-session 中不再使用的 AuthSessionInput 和 AuthUser 类型导入
- 移除 game store 中多余的类型导入如 BetSelection、StartAutoHostingInput 等
- 将 i18n 模块中的 AppLanguage 类型改为从 type 文件导入
- 移除 mobile-header 中未使用的 MessageBroadcast 组件导入
- 统一各组件中的类型引用路径,全部指向 type 文件
- 修复 withdraw 组件中 currencies 映射的类型注解问题
- 更新 modal-store 中移除未使用的 ModalKey 类型导入
This commit is contained in:
JiaJun
2026-06-04 18:14:56 +08:00
parent a6b34660ad
commit 7999a5d709
20 changed files with 31 additions and 40 deletions

View File

@@ -1,9 +1,11 @@
import { useQuery } from '@tanstack/react-query'
import { useMemo } from 'react'
import { type GamePeriodHistoryItemDto, getGamePeriodHistory } from '@/api'
import { getGamePeriodHistory } from '@/api'
import { FLOWER_IMAGE_BY_ID } from '@/features/game/shared'
import type { PeriodHistoryDisplayItem } from '@/type'
import type { GamePeriodHistoryItemDto, PeriodHistoryDisplayItem } from '@/type'
export type { PeriodHistoryDisplayItem } from '@/type'
export const DEFAULT_PERIOD_HISTORY_LIMIT = 36