mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove unnecessary type assertions (#78009)
* Chore: Remove unnecessary type assertions * betterer
This commit is contained in:
@@ -183,7 +183,7 @@ const enum Op {
|
||||
MACROS = 'macros',
|
||||
}
|
||||
// eslint-ignore
|
||||
const customOperators = getCustomOperators(BasicConfig) as typeof BasicConfig.operators;
|
||||
const customOperators = getCustomOperators(BasicConfig);
|
||||
const textWidget = BasicConfig.types.text.widgets.text;
|
||||
const opers = [...(textWidget.operators || []), Op.IN, Op.NOT_IN];
|
||||
const customTextWidget = {
|
||||
@@ -216,7 +216,7 @@ export const raqbConfig: Config = {
|
||||
...BasicConfig,
|
||||
widgets,
|
||||
settings,
|
||||
operators: customOperators as typeof BasicConfig.operators,
|
||||
operators: customOperators,
|
||||
types: customTypes,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user