Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 68094f4

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

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/sourcegraph.d.ts‎

Copy file name to clipboardExpand all lines: src/sourcegraph.d.ts
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.