fix: Resolve TypeScript strict-mode error in IpoReadinessPage
The milestones array only had 'progress' and 'pending' status values, causing TS to infer the status type as 'progress' | 'pending'. The template code then compared m.status === 'done' which TS flagged as unreachable. Fix by explicitly typing the array to include all three possible status values: 'done' | 'progress' | 'pending'. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
79689c5f95
commit
b2c81090f8
|
|
@ -35,11 +35,11 @@ const overallProgress = {
|
|||
percent: 72,
|
||||
};
|
||||
|
||||
const milestones = [
|
||||
{ name: 'S-1初稿提交', date: '2026-Q2', status: 'progress' as const },
|
||||
{ name: 'SEC审核期', date: '2026-Q3', status: 'pending' as const },
|
||||
{ name: '路演 (Roadshow)', date: '2026-Q3', status: 'pending' as const },
|
||||
{ name: '定价 & 上市', date: '2026-Q4', status: 'pending' as const },
|
||||
const milestones: { name: string; date: string; status: 'done' | 'progress' | 'pending' }[] = [
|
||||
{ name: 'S-1初稿提交', date: '2026-Q2', status: 'progress' },
|
||||
{ name: 'SEC审核期', date: '2026-Q3', status: 'pending' },
|
||||
{ name: '路演 (Roadshow)', date: '2026-Q3', status: 'pending' },
|
||||
{ name: '定价 & 上市', date: '2026-Q4', status: 'pending' },
|
||||
];
|
||||
|
||||
const checklistItems: CheckItem[] = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue