mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 03:32:37 -06:00
Use const assertion instead of type assertion (#75165)
This commit is contained in:
parent
b38454d81b
commit
d1296f7213
@ -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.", "0"],
|
||||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]
|
[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": [
|
"public/app/plugins/datasource/testdata/ConfigEditor.tsx:5381": [
|
||||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
||||||
],
|
],
|
||||||
|
@ -340,7 +340,7 @@ export class CompletionProvider implements monacoTypes.languages.CompletionItemP
|
|||||||
const functions = CompletionProvider.functions.map((key) => ({
|
const functions = CompletionProvider.functions.map((key) => ({
|
||||||
...key,
|
...key,
|
||||||
insertTextRules: this.monaco?.languages.CompletionItemInsertTextRule?.InsertAsSnippet,
|
insertTextRules: this.monaco?.languages.CompletionItemInsertTextRule?.InsertAsSnippet,
|
||||||
type: 'FUNCTION' as CompletionType,
|
type: 'FUNCTION' as const,
|
||||||
}));
|
}));
|
||||||
const tags = this.getScopesCompletions()
|
const tags = this.getScopesCompletions()
|
||||||
.concat(this.getIntrinsicsCompletions())
|
.concat(this.getIntrinsicsCompletions())
|
||||||
|
Loading…
Reference in New Issue
Block a user