mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: resolve TypeScript compilation error in askFollowupQuestionTool
- Removed duplicate type definition that was causing syntax errors - Fixed lines 38-42 to have proper TypeScript union type syntax - All tests now passing (260 test files, 3384 tests)
This commit is contained in:
parent
d776306625
commit
75945f845d
1 changed files with 2 additions and 5 deletions
|
|
@ -36,11 +36,8 @@ export async function askFollowupQuestionTool(
|
|||
if (follow_up) {
|
||||
// Define the actual structure returned by the XML parser for both formats
|
||||
type ParsedSuggestion =
|
||||
type ParsedSuggestion =
|
||||
| string // For backward compatibility with old format
|
||||
| { "#text": string; "@_mode"?: string } // Old attribute format
|
||||
| { content: string; mode?: string } // New nested element format
|
||||
| { "#text": string; "@_mode"?: string } // For backward compatibility with old attribute format
|
||||
| string // For backward compatibility with old format
|
||||
| { "#text": string; "@_mode"?: string } // Old attribute format
|
||||
| { content: string; mode?: string } // New nested element format
|
||||
| { [key: string]: any } // Fallback for unexpected structures
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue