Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 68094f4

Browse files
committed
fix: executeCommand defaults to any result type instead of {}
1 parent f725001 commit 68094f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sourcegraph.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ declare module 'sourcegraph' {
800800
* @return A {@link Promise} that resolves to the result of the given command.
801801
* @throws If no command exists wih the given command identifier, an error is thrown.
802802
*/
803-
export function executeCommand<T>(command: string, ...args: any[]): Promise<T>
803+
export function executeCommand<T = any>(command: string, ...args: any[]): Promise<T>
804804
}
805805

806806
export interface ContextValues {

0 commit comments

Comments
 (0)