mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
54ec8b7685
commit
3459279749
1 changed files with 7 additions and 2 deletions
|
@ -4,12 +4,17 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { NullContextFunction } from '../types';
|
||||
import { NullContextFunction, Datatable } from '../types';
|
||||
import { getFunctionHelp } from '../../strings';
|
||||
|
||||
const noop = () => {};
|
||||
|
||||
export function location(): NullContextFunction<'location', {}, void> {
|
||||
interface Return extends Datatable {
|
||||
columns: [{ name: 'latitude'; type: 'number' }, { name: 'longitude'; type: 'number' }];
|
||||
rows: [{ latitude: number; longitude: number }];
|
||||
}
|
||||
|
||||
export function location(): NullContextFunction<'location', {}, Promise<Return>> {
|
||||
const { help } = getFunctionHelp().location;
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue