Skip to content

Commit d1296f7

Browse files
Use const assertion instead of type assertion (grafana#75165)
1 parent b38454d commit d1296f7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.betterer.results

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4168,9 +4168,6 @@ exports[`better eslint`] = {
41684168
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
41694169
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]
41704170
],
4171-
"public/app/plugins/datasource/tempo/traceql/autocomplete.ts:5381": [
4172-
[0, 0, 0, "Do not use any type assertions.", "0"]
4173-
],
41744171
"public/app/plugins/datasource/testdata/ConfigEditor.tsx:5381": [
41754172
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
41764173
],

public/app/plugins/datasource/tempo/traceql/autocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class CompletionProvider implements monacoTypes.languages.CompletionItemP
340340
const functions = CompletionProvider.functions.map((key) => ({
341341
...key,
342342
insertTextRules: this.monaco?.languages.CompletionItemInsertTextRule?.InsertAsSnippet,
343-
type: 'FUNCTION' as CompletionType,
343+
type: 'FUNCTION' as const,
344344
}));
345345
const tags = this.getScopesCompletions()
346346
.concat(this.getIntrinsicsCompletions())

0 commit comments

Comments
 (0)