浏览代码

Fix: Correct SnapshotData typing (#16279)

Ryan McKinley 6 年之前
父节点
当前提交
e6d9a524b4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      public/app/features/dashboard/state/PanelModel.ts

+ 2 - 2
public/app/features/dashboard/state/PanelModel.ts

@@ -6,7 +6,7 @@ import { Emitter } from 'app/core/utils/emitter';
 import { getNextRefIdChar } from 'app/core/utils/query';
 import { getNextRefIdChar } from 'app/core/utils/query';
 
 
 // Types
 // Types
-import { DataQuery, TimeSeries, Threshold, ScopedVars, TableData } from '@grafana/ui';
+import { DataQuery, Threshold, ScopedVars, DataQueryResponseData } from '@grafana/ui';
 import { PanelPlugin } from 'app/types';
 import { PanelPlugin } from 'app/types';
 import config from 'app/core/config';
 import config from 'app/core/config';
 
 
@@ -92,7 +92,7 @@ export class PanelModel {
   thresholds?: any;
   thresholds?: any;
   pluginVersion?: string;
   pluginVersion?: string;
 
 
-  snapshotData?: TimeSeries[] | [TableData];
+  snapshotData?: DataQueryResponseData[];
   timeFrom?: any;
   timeFrom?: any;
   timeShift?: any;
   timeShift?: any;
   hideTimeOverride?: any;
   hideTimeOverride?: any;