mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: strictNullChecks, ColoringEditor and time_region_manager (#18442)
* Make swicth booleans non-optional
This commit is contained in:
@@ -4,8 +4,8 @@ import { GrafanaThemeType, getColorFromHexRgbOrName } from '@grafana/ui';
|
||||
import { dateTime, DateTime, AbsoluteTimeRange } from '@grafana/data';
|
||||
|
||||
type TimeRegionColorDefinition = {
|
||||
fill: string;
|
||||
line: string;
|
||||
fill: string | null;
|
||||
line: string | null;
|
||||
};
|
||||
|
||||
export const colorModes: any = {
|
||||
|
||||
@@ -13,10 +13,10 @@ export interface SingleStatOptions extends SingleStatBaseOptions {
|
||||
prefixFontSize?: string;
|
||||
valueFontSize?: string;
|
||||
postfixFontSize?: string;
|
||||
colorBackground?: boolean;
|
||||
colorValue?: boolean;
|
||||
colorPrefix?: boolean;
|
||||
colorPostfix?: boolean;
|
||||
colorBackground: boolean;
|
||||
colorValue: boolean;
|
||||
colorPrefix: boolean;
|
||||
colorPostfix: boolean;
|
||||
sparkline: SparklineOptions;
|
||||
}
|
||||
|
||||
@@ -44,4 +44,8 @@ export const defaults: SingleStatOptions = {
|
||||
},
|
||||
fieldOptions: standardFieldDisplayOptions,
|
||||
orientation: VizOrientation.Auto,
|
||||
colorBackground: false,
|
||||
colorValue: false,
|
||||
colorPrefix: false,
|
||||
colorPostfix: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user