Commit 6ca1ae30 by Peter Holmberg

set correct return type

parent 52dcb9bf
......@@ -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) };
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment