mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: resolve TypeScript errors in Claude Code integration
- Fix readline.createInterface input type issue with process.stdout - Add null check for process.stderr to handle potential null values - Ensure type safety while maintaining functionality
This commit is contained in:
parent
d0f36c0f78
commit
27e1a42045
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ export async function* runClaudeCode(
|
|||
const { process, tempFileCleanup } = await runProcess(options)
|
||||
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdout,
|
||||
input: process.stdout!,
|
||||
})
|
||||
|
||||
try {
|
||||
|
|
@ -45,7 +45,7 @@ export async function* runClaudeCode(
|
|||
partialData: null,
|
||||
}
|
||||
|
||||
process.stderr.on("data", (data) => {
|
||||
process.stderr?.on("data", (data) => {
|
||||
processState.stderrLogs += data.toString()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue