Skip to content

Commit

Permalink
Adress #106358: Fix TS 4.1 errors in codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Sep 10, 2020
1 parent 26803ce commit 533ca9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/base/node/processes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { CommandOptions, ForkOptions, SuccessData, Source, TerminateResponse, Te
import { getPathFromAmdModule } from 'vs/base/common/amd';
export { CommandOptions, ForkOptions, SuccessData, Source, TerminateResponse, TerminateResponseCode };

export type ValueCallback<T> = (value?: T | Promise<T>) => void;
export type ValueCallback<T> = (value: T | Promise<T>) => void;
export type ErrorCallback = (error?: any) => void;
export type ProgressCallback<T> = (progress: T) => void;

Expand Down Expand Up @@ -98,7 +98,7 @@ export abstract class AbstractProcess<TProgressData> {

private childProcess: cp.ChildProcess | null;
protected childProcessPromise: Promise<cp.ChildProcess> | null;
private pidResolve?: ValueCallback<number>;
private pidResolve: ValueCallback<number> | undefined;
protected terminateRequested: boolean;

private static WellKnowCommands: IStringDictionary<boolean> = {
Expand Down

0 comments on commit 533ca9b

Please sign in to comment.