diff --git a/.betterer.results b/.betterer.results index 5693fce9dc4..672db186950 100644 --- a/.betterer.results +++ b/.betterer.results @@ -4168,9 +4168,6 @@ exports[`better eslint`] = { [0, 0, 0, "Unexpected any. Specify a different type.", "0"], [0, 0, 0, "Unexpected any. Specify a different type.", "1"] ], - "public/app/plugins/datasource/tempo/traceql/autocomplete.ts:5381": [ - [0, 0, 0, "Do not use any type assertions.", "0"] - ], "public/app/plugins/datasource/testdata/ConfigEditor.tsx:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"] ], diff --git a/public/app/plugins/datasource/tempo/traceql/autocomplete.ts b/public/app/plugins/datasource/tempo/traceql/autocomplete.ts index 55860d0ce52..2397c0ff63e 100644 --- a/public/app/plugins/datasource/tempo/traceql/autocomplete.ts +++ b/public/app/plugins/datasource/tempo/traceql/autocomplete.ts @@ -340,7 +340,7 @@ export class CompletionProvider implements monacoTypes.languages.CompletionItemP const functions = CompletionProvider.functions.map((key) => ({ ...key, insertTextRules: this.monaco?.languages.CompletionItemInsertTextRule?.InsertAsSnippet, - type: 'FUNCTION' as CompletionType, + type: 'FUNCTION' as const, })); const tags = this.getScopesCompletions() .concat(this.getIntrinsicsCompletions())