Browse Source

set correct return type

Peter Holmberg 6 years ago
parent
commit
6ca1ae309a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/utils/explore.ts

+ 1 - 1
public/app/core/utils/explore.ts

@@ -226,7 +226,7 @@ export function generateKey(index = 0): string {
   return `Q-${Date.now()}-${Math.random()}-${index}`;
 }
 
-export function generateEmptyQuery(queries: DataQuery[], index = 0): { refId: string; key: string } {
+export function generateEmptyQuery(queries: DataQuery[], index = 0): DataQuery {
   return { refId: getNextRefIdLetter(queries), key: generateKey(index) };
 }