mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Prefer using explicit function types instead of Function
This commit is contained in:
@@ -11,7 +11,7 @@ import { extHostNamedCustomer } from 'vs/workbench/api/electron-browser/extHostC
|
||||
export class MainThreadProgress implements MainThreadProgressShape {
|
||||
|
||||
private _progressService: IProgressService2;
|
||||
private _progress = new Map<number, { resolve: Function, progress: IProgress<IProgressStep> }>();
|
||||
private _progress = new Map<number, { resolve: () => void, progress: IProgress<IProgressStep> }>();
|
||||
private _proxy: ExtHostProgressShape;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -32,9 +32,9 @@ export class Disposable {
|
||||
});
|
||||
}
|
||||
|
||||
private _callOnDispose?: Function;
|
||||
private _callOnDispose?: () => any;
|
||||
|
||||
constructor(callOnDispose: Function) {
|
||||
constructor(callOnDispose: () => any) {
|
||||
this._callOnDispose = callOnDispose;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user