Update dependency typescript to v5.4.3 (#84470)

* Update dependency typescript to v5.4.3

* refactor: solve TS errors

* refactor: update yarn.lock

* refactor: return type

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Laura Benz <laura.benz@grafana.com>
This commit is contained in:
renovate[bot]
2024-04-12 14:46:47 +02:00
committed by GitHub
co-authored by Laura Benz
parent 3b4983695e
commit a5cd88c67e
17 changed files with 36 additions and 56 deletions
+1 -1
View File
@@ -80,7 +80,7 @@
"rollup-plugin-dts": "^5.0.0",
"rollup-plugin-esbuild": "5.0.0",
"rollup-plugin-node-externals": "^5.0.0",
"typescript": "5.3.3"
"typescript": "5.4.3"
},
"peerDependencies": {
"react": "^18.0.0",
+1 -1
View File
@@ -51,6 +51,6 @@
"dependencies": {
"@grafana/tsconfig": "^1.3.0-rc1",
"tslib": "2.6.2",
"typescript": "5.3.3"
"typescript": "5.4.3"
}
}
+1 -1
View File
@@ -79,7 +79,7 @@
"rollup-plugin-node-externals": "^5.0.0",
"ts-jest": "29.1.2",
"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.3"
},
"peerDependencies": {
"react": "^18.0.0",
+1 -1
View File
@@ -55,7 +55,7 @@
"rollup-plugin-esbuild": "5.0.0",
"rollup-plugin-node-externals": "5.0.0",
"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.3"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
@@ -41,7 +41,7 @@
"react": "18.2.0",
"ts-jest": "29.1.2",
"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.3"
},
"peerDependencies": {
"react": "^18.0.0",
+1 -1
View File
@@ -138,7 +138,7 @@
"style-loader": "3.3.4",
"testing-library-selector": "0.3.1",
"ts-node": "10.9.2",
"typescript": "5.3.3",
"typescript": "5.4.3",
"webpack": "5.91.0",
"webpack-cli": "5.1.4"
},
+1 -1
View File
@@ -71,7 +71,7 @@
"rollup-plugin-esbuild": "5.0.0",
"rollup-plugin-node-externals": "^5.0.0",
"rollup-plugin-sourcemaps": "0.6.3",
"typescript": "5.3.3"
"typescript": "5.4.3"
},
"peerDependencies": {
"react": "^18.0.0",
+1 -1
View File
@@ -45,7 +45,7 @@
"rollup-plugin-dts": "^5.0.0",
"rollup-plugin-esbuild": "5.0.0",
"rollup-plugin-node-externals": "^5.0.0",
"typescript": "5.3.3"
"typescript": "5.4.3"
},
"dependencies": {
"tslib": "2.6.2"
+1 -1
View File
@@ -46,7 +46,7 @@
"react": "18.2.0",
"ts-jest": "29.1.2",
"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.3"
},
"peerDependencies": {
"@grafana/runtime": "10.4.0-pre"
+1 -1
View File
@@ -182,7 +182,7 @@
"storybook-addon-turbo-build": "2.0.1",
"storybook-dark-mode": "3.0.1",
"style-loader": "3.3.4",
"typescript": "5.3.3",
"typescript": "5.4.3",
"webpack": "5.91.0"
},
"peerDependencies": {
@@ -147,8 +147,8 @@ export function preparePlotData2(
frame: DataFrame,
stackingGroups: StackingGroup[],
onStackMeta?: (meta: StackMeta) => void
) {
let data: AlignedData = Array(frame.fields.length);
): AlignedData {
let data = Array(frame.fields.length);
let stacksQty = stackingGroups.length;
@@ -186,9 +186,9 @@ export function preparePlotData2(
if (i === 0) {
if (field.type === FieldType.time) {
data[i] = ensureTimeField(field).values;
data[0] = ensureTimeField(field).values;
} else {
data[i] = vals;
data[0] = vals;
}
return;
}