Enables typescript strict mode

Fixes all the compile/lint issues
This commit is contained in:
Eric Amodio
2017-05-11 02:14:58 -04:00
parent 90245b1111
commit ee29596d45
52 changed files with 525 additions and 461 deletions

View File

@@ -6,7 +6,7 @@ import { BuiltInCommands } from './constants';
export class ActiveEditorTracker extends Disposable {
private _disposable: Disposable;
private _resolver: (value?: TextEditor | PromiseLike<TextEditor>) => void;
private _resolver: ((value?: TextEditor | PromiseLike<TextEditor>) => void) | undefined;
constructor() {
super(() => this.dispose());
@@ -28,11 +28,11 @@ export class ActiveEditorTracker extends Disposable {
return this.wait(timeout);
}
async close(): Promise<{}> {
async close(): Promise<{} | undefined> {
return commands.executeCommand(BuiltInCommands.CloseActiveEditor);
}
async next(): Promise<{}> {
async next(): Promise<{} | undefined> {
return commands.executeCommand(BuiltInCommands.NextEditor);
}