Skip to content

Commit bd823b5

Browse files
Merge pull request #3329 from github/robertbrignull/asString
Use type 'string | Buffer' for process stdout/stderr
2 parents 3e716e9 + 58a0619 commit bd823b5

File tree

1 file changed

+3
-3
lines changed
  • extensions/ql-vscode/src/codeql-cli

1 file changed

+3
-3
lines changed

extensions/ql-vscode/src/codeql-cli/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,8 +1605,8 @@ export function spawnServer(
16051605
command: string[],
16061606
commandArgs: string[],
16071607
logger: Logger,
1608-
stderrListener: (data: any) => void,
1609-
stdoutListener?: (data: any) => void,
1608+
stderrListener: (data: string | Buffer) => void,
1609+
stdoutListener?: (data: string | Buffer) => void,
16101610
progressReporter?: ProgressReporter,
16111611
): ChildProcessWithoutNullStreams {
16121612
// Enable verbose logging.
@@ -1626,7 +1626,7 @@ export function spawnServer(
16261626
);
16271627
}
16281628

1629-
let lastStdout: any = undefined;
1629+
let lastStdout: string | Buffer | undefined = undefined;
16301630
child.stdout!.on("data", (data) => {
16311631
lastStdout = data;
16321632
});

0 commit comments

Comments
 (0)