Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sulemanof committed Nov 20, 2020
1 parent 3909685 commit 4383a41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/vis_type_timeseries/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type VisPayload = TypeOf<typeof visPayloadSchema>;
interface PanelData {
id: string;
label: string;
data: [number, number];
data: Array<[number, number]>;
}

// series data is not fully typed yet
Expand Down
12 changes: 7 additions & 5 deletions src/plugins/vis_type_timeseries/server/lib/get_vis_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ import { FakeRequest, RequestHandlerContext } from 'kibana/server';
import _ from 'lodash';
import { first, map } from 'rxjs/operators';

import { Filter, TimeRangeBounds, Query } from 'src/plugins/data/common';
import { Filter, Query } from 'src/plugins/data/common';
import { getPanelData } from './vis_data/get_panel_data';
import { Framework } from '../plugin';
import { ReqFacade } from './search_strategies/strategies/abstract_search_strategy';
import { PanelSchema, TimeseriesVisData } from '../../common/types';
import { TimeseriesVisData } from '../../common/types';

export interface GetVisDataOptions {
timerange: TimeRangeBounds & {
timezone: string;
timerange: {
min: number | string;
max: number | string;
timezone?: string;
};
panels: PanelSchema[];
panels: unknown[];
filters?: Filter[];
state?: Record<string, unknown>;
query?: Query | Query[];
Expand Down

0 comments on commit 4383a41

Please sign in to comment.