More files that has fixed with prettier

This commit is contained in:
Torkel Ödegaard 2019-02-13 11:39:41 +01:00
parent ac9129c2b7
commit ffdf747080
3 changed files with 8 additions and 10 deletions

View File

@ -1,6 +1,6 @@
export interface GrafanaVariables { export interface GrafanaVariables {
'panelHorizontalPadding': number; panelHorizontalPadding: number;
'panelVerticalPadding': number; panelVerticalPadding: number;
} }
declare const variables: GrafanaVariables; declare const variables: GrafanaVariables;

View File

@ -1,10 +1,11 @@
import { DataQueryOptions, DataQuery } from '@grafana/ui'; import { DataQueryOptions, DataQuery } from '@grafana/ui';
import moment from 'moment'; import moment from 'moment';
export function getQueryOptions<TQuery extends DataQuery>(
export function getQueryOptions<TQuery extends DataQuery>(options: Partial<DataQueryOptions<TQuery>>): DataQueryOptions<TQuery> { options: Partial<DataQueryOptions<TQuery>>
const raw = {from: 'now', to: 'now-1h'}; ): DataQueryOptions<TQuery> {
const range = { from: moment(), to: moment(), raw: raw}; const raw = { from: 'now', to: 'now-1h' };
const range = { from: moment(), to: moment(), raw: raw };
const defaults: DataQueryOptions<TQuery> = { const defaults: DataQueryOptions<TQuery> = {
range: range, range: range,

View File

@ -1,8 +1,5 @@
export class BackendSrvMock { export class BackendSrvMock {
search: any; search: any;
constructor() { constructor() {}
}
} }