mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: more any/type assertion improvements (#57450)
* more friday any/type assertion improvements * Apply suggestions from code review Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com> * Update public/app/angular/promiseToDigest.test.ts Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com> Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
This commit is contained in:
@@ -258,7 +258,7 @@ describe('applyFieldOverrides', () => {
|
||||
const data = applyFieldOverrides({
|
||||
data: [f0], // the frame
|
||||
fieldConfig: src as FieldConfigSource, // defaults + overrides
|
||||
replaceVariables: undefined as any as InterpolateFunction,
|
||||
replaceVariables: undefined as unknown as InterpolateFunction,
|
||||
theme: createTheme(),
|
||||
fieldConfigRegistry: customFieldRegistry,
|
||||
})[0];
|
||||
@@ -285,7 +285,7 @@ describe('applyFieldOverrides', () => {
|
||||
const data = applyFieldOverrides({
|
||||
data: [f0], // the frame
|
||||
fieldConfig: src as FieldConfigSource, // defaults + overrides
|
||||
replaceVariables: undefined as any as InterpolateFunction,
|
||||
replaceVariables: undefined as unknown as InterpolateFunction,
|
||||
theme: createTheme(),
|
||||
})[0];
|
||||
const valueColumn = data.fields[1];
|
||||
@@ -322,7 +322,7 @@ describe('applyFieldOverrides', () => {
|
||||
const data = applyFieldOverrides({
|
||||
data: [f0], // the frame
|
||||
fieldConfig: src as FieldConfigSource, // defaults + overrides
|
||||
replaceVariables: undefined as any as InterpolateFunction,
|
||||
replaceVariables: undefined as unknown as InterpolateFunction,
|
||||
theme: createTheme(),
|
||||
})[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user