fix(types): resolve 3 pre-existing typecheck errors in transient-state test
message_type: 'board_started' as const (line 93) fixes TS2322 on lines 107 and 122 — TypeScript was inferring message_type as string instead of the literal 'board_started'. boardState local variable: replace 'as never' with proper shape + 'status: discussing' as const (line 159-160) fixes TS2339 on line 168 where .topic was accessed on type 'never'. All 5 transient-state tests still pass. vue-tsc --noEmit now clean.
This commit is contained in:
parent
53347ed1fe
commit
23160be055
|
|
@ -90,7 +90,7 @@ describe('transient state reset matrix', () => {
|
|||
content: '私董会开始:测试主题',
|
||||
timestamp: '2026-07-01T10:00:00Z',
|
||||
status: 'completed' as const,
|
||||
message_type: 'board_started',
|
||||
message_type: 'board_started' as const,
|
||||
board_started: {
|
||||
team_id: 'team-1',
|
||||
topic: '测试主题',
|
||||
|
|
@ -156,8 +156,8 @@ describe('transient state reset matrix', () => {
|
|||
]
|
||||
store.currentConversationId = 'conv-a'
|
||||
|
||||
const boardState = { topic: 'board in A', experts: [], max_rounds: 1, current_round: 0, status: 'discussing' }
|
||||
store.boardState = boardState as never
|
||||
const boardState = { topic: 'board in A', experts: [], max_rounds: 1, current_round: 0, status: 'discussing' as const }
|
||||
store.boardState = boardState
|
||||
store.debateState = { topic: 'debate' } as never
|
||||
store.collaborationState = { contracts: [], notices: [], reviews: [], risks: [] } as never
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue