Remove unused generic types

This commit is contained in:
Matt Bierner
2017-11-07 11:48:38 -08:00
parent 0137b58221
commit 4b4ac1b4d9
7 changed files with 10 additions and 21 deletions

View File

@@ -142,8 +142,7 @@ export function createApiFactory(
// namespace: commands
const commands: typeof vscode.commands = {
// @ts-ignore unused generic parameter
registerCommand<T>(id: string, command: <T>(...args: any[]) => T | Thenable<T>, thisArgs?: any): vscode.Disposable {
registerCommand(id: string, command: <T>(...args: any[]) => T | Thenable<T>, thisArgs?: any): vscode.Disposable {
return extHostCommands.registerCommand(id, command, thisArgs);
},
registerTextEditorCommand(id: string, callback: (textEditor: vscode.TextEditor, edit: vscode.TextEditorEdit, ...args: any[]) => void, thisArg?: any): vscode.Disposable {