Skip to content

Commit 533ca9b

Browse files
committed
Adress microsoft#106358: Fix TS 4.1 errors in codebase
1 parent 26803ce commit 533ca9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/node/processes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { CommandOptions, ForkOptions, SuccessData, Source, TerminateResponse, Te
1818
import { getPathFromAmdModule } from 'vs/base/common/amd';
1919
export { CommandOptions, ForkOptions, SuccessData, Source, TerminateResponse, TerminateResponseCode };
2020

21-
export type ValueCallback<T> = (value?: T | Promise<T>) => void;
21+
export type ValueCallback<T> = (value: T | Promise<T>) => void;
2222
export type ErrorCallback = (error?: any) => void;
2323
export type ProgressCallback<T> = (progress: T) => void;
2424

@@ -98,7 +98,7 @@ export abstract class AbstractProcess<TProgressData> {
9898

9999
private childProcess: cp.ChildProcess | null;
100100
protected childProcessPromise: Promise<cp.ChildProcess> | null;
101-
private pidResolve?: ValueCallback<number>;
101+
private pidResolve: ValueCallback<number> | undefined;
102102
protected terminateRequested: boolean;
103103

104104
private static WellKnowCommands: IStringDictionary<boolean> = {

0 commit comments

Comments
 (0)