Skip to content

Commit 27e1a42

Browse files
committed
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
1 parent d0f36c0 commit 27e1a42

File tree

1 file changed

+2
-2
lines changed
  • src/integrations/claude-code

1 file changed

+2
-2
lines changed

src/integrations/claude-code/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function* runClaudeCode(
3434
const { process, tempFileCleanup } = await runProcess(options)
3535

3636
const rl = readline.createInterface({
37-
input: process.stdout,
37+
input: process.stdout!,
3838
})
3939

4040
try {
@@ -45,7 +45,7 @@ export async function* runClaudeCode(
4545
partialData: null,
4646
}
4747

48-
process.stderr.on("data", (data) => {
48+
process.stderr?.on("data", (data) => {
4949
processState.stderrLogs += data.toString()
5050
})
5151

0 commit comments

Comments
 (0)