Commit 0fb7ee05 by Ryan McKinley Committed by GitHub

Chore: Minor cleanup (#27112)

parent a2a6b944
......@@ -8,8 +8,8 @@
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "Schema definition for the plugin.json file"
"type": "string",
"description": "Schema definition for the plugin.json file"
},
"id": {
"type": "string",
......
......@@ -538,8 +538,11 @@ export interface DataSourceSelectItem {
export interface AnnotationQueryRequest<MoreOptions = {}> {
range: TimeRange;
rangeRaw: RawTimeRange;
// Should be DataModel but cannot import that here from the main app. Needs to be moved to package first.
dashboard: any;
// The annotation query, typically extends DataQuery
annotation: {
datasource: string;
enable: boolean;
......
......@@ -8,7 +8,7 @@ export interface AddDashboardConfig {
timeRange: DashboardTimeRangeConfig;
timezone: string;
title: string;
variables: Partial<AddVariableConfig>[];
variables: Array<Partial<AddVariableConfig>>;
}
export interface AddVariableConfig {
......@@ -145,7 +145,7 @@ const addVariable = (config: Partial<AddVariableConfig>, isFirst: boolean): any
return fullConfig;
};
const addVariables = (configs: Partial<AddVariableConfig>[]): any => {
const addVariables = (configs: Array<Partial<AddVariableConfig>>): any => {
if (configs.length > 0) {
e2e.pages.Dashboard.Settings.General.sectionItems('Variables').click();
}
......
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