Update dependency typescript to v4.5.4 (#43756)

* Update dependency typescript to v4.5.4

* Changes needed to support new TypeScript version

* kick drone

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
renovate[bot] 2022-01-06 16:16:13 +00:00 committed by GitHub
parent 890c43adf1
commit 846c6ce758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 32 additions and 24 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "typescript", "name": "typescript",
"version": "4.4.3-sdk", "version": "4.5.4-sdk",
"main": "./lib/typescript.js", "main": "./lib/typescript.js",
"type": "commonjs" "type": "commonjs"
} }

View File

@ -220,7 +220,7 @@
"ts-jest": "27.1.2", "ts-jest": "27.1.2",
"ts-loader": "9.2.6", "ts-loader": "9.2.6",
"ts-node": "10.4.0", "ts-node": "10.4.0",
"typescript": "4.4.3", "typescript": "4.5.4",
"wait-on": "6.0.0", "wait-on": "6.0.0",
"webpack": "5.65.0", "webpack": "5.65.0",
"webpack-bundle-analyzer": "4.5.0", "webpack-bundle-analyzer": "4.5.0",

View File

@ -72,6 +72,6 @@
"rollup-plugin-terser": "7.0.2", "rollup-plugin-terser": "7.0.2",
"sinon": "12.0.1", "sinon": "12.0.1",
"tinycolor2": "1.4.1", "tinycolor2": "1.4.1",
"typescript": "4.4.3" "typescript": "4.5.4"
} }
} }

View File

@ -36,6 +36,6 @@
"dependencies": { "dependencies": {
"@grafana/tsconfig": "^1.0.0-rc1", "@grafana/tsconfig": "^1.0.0-rc1",
"tslib": "2.3.1", "tslib": "2.3.1",
"typescript": "4.4.3" "typescript": "4.5.4"
} }
} }

View File

@ -59,7 +59,7 @@
"rimraf": "3.0.1", "rimraf": "3.0.1",
"ts-loader": "6.2.1", "ts-loader": "6.2.1",
"tslib": "2.3.1", "tslib": "2.3.1",
"typescript": "4.4.3", "typescript": "4.5.4",
"uuid": "8.3.0", "uuid": "8.3.0",
"yaml": "^1.8.3" "yaml": "^1.8.3"
} }

View File

@ -53,7 +53,7 @@
"rollup": "2.63.0", "rollup": "2.63.0",
"rollup-plugin-sourcemaps": "0.6.3", "rollup-plugin-sourcemaps": "0.6.3",
"rollup-plugin-terser": "7.0.2", "rollup-plugin-terser": "7.0.2",
"typescript": "4.4.3" "typescript": "4.5.4"
}, },
"types": "src/index.ts" "types": "src/index.ts"
} }

View File

@ -31,7 +31,7 @@
"rollup": "2.63.0", "rollup": "2.63.0",
"rollup-plugin-sourcemaps": "0.6.3", "rollup-plugin-sourcemaps": "0.6.3",
"rollup-plugin-terser": "7.0.2", "rollup-plugin-terser": "7.0.2",
"typescript": "4.4.3" "typescript": "4.5.4"
}, },
"dependencies": { "dependencies": {
"tslib": "2.3.1" "tslib": "2.3.1"

View File

@ -173,7 +173,7 @@
"style-loader": "3.3.0", "style-loader": "3.3.0",
"terser-webpack-plugin": "5.3.0", "terser-webpack-plugin": "5.3.0",
"ts-loader": "8.0.11", "ts-loader": "8.0.11",
"typescript": "4.4.3", "typescript": "4.5.4",
"webpack": "5.65.0", "webpack": "5.65.0",
"webpack-filter-warnings-plugin": "1.2.1" "webpack-filter-warnings-plugin": "1.2.1"
}, },

View File

@ -237,7 +237,6 @@ export class AsyncSelect<T> extends PureComponent<AsyncProps<T>> {
getOptionLabel={getOptionLabel} getOptionLabel={getOptionLabel}
getOptionValue={getOptionValue} getOptionValue={getOptionValue}
menuShouldScrollIntoView={false} menuShouldScrollIntoView={false}
//@ts-expect-error
onChange={onChange} onChange={onChange}
loadOptions={loadOptions} loadOptions={loadOptions}
isLoading={isLoading} isLoading={isLoading}

View File

@ -24,7 +24,7 @@
"@types/tinycolor2": "1.4.2", "@types/tinycolor2": "1.4.2",
"enzyme": "3.11.0", "enzyme": "3.11.0",
"sinon": "12.0.1", "sinon": "12.0.1",
"typescript": "4.4.3" "typescript": "4.5.4"
}, },
"dependencies": { "dependencies": {
"@emotion/css": "11.1.3", "@emotion/css": "11.1.3",

View File

@ -1,9 +1,18 @@
import { Dispatch, Middleware, MiddlewareAPI } from 'redux'; import { Dispatch, Middleware, MiddlewareAPI } from 'redux';
import thunk, { ThunkMiddleware } from 'redux-thunk'; import thunk, { ThunkMiddleware } from 'redux-thunk';
import { AnyAction, configureStore, EnhancedStore, Reducer, getDefaultMiddleware } from '@reduxjs/toolkit'; import {
AnyAction,
configureStore,
EnhancedStore,
Reducer,
getDefaultMiddleware,
CombinedState,
PreloadedState,
} from '@reduxjs/toolkit';
import { StoreState } from '../../../app/types'; import { StoreState } from '../../../app/types';
import { setStore } from '../../../app/store/store'; import { setStore } from '../../../app/store/store';
import { NoInfer } from '@reduxjs/toolkit/dist/tsHelpers';
export interface ReduxTesterGiven<State> { export interface ReduxTesterGiven<State> {
givenRootReducer: (rootReducer: Reducer<State>) => ReduxTesterWhen<State>; givenRootReducer: (rootReducer: Reducer<State>) => ReduxTesterWhen<State>;
@ -29,7 +38,7 @@ export interface ReduxTesterThen<State> {
} }
export interface ReduxTesterArguments<State> { export interface ReduxTesterArguments<State> {
preloadedState?: State; preloadedState?: PreloadedState<CombinedState<NoInfer<State>>>;
debug?: boolean; debug?: boolean;
} }
@ -46,7 +55,7 @@ export const reduxTester = <State>(args?: ReduxTesterArguments<State>): ReduxTes
return next(action); return next(action);
}; };
const preloadedState = args?.preloadedState ?? (({} as unknown) as State); const preloadedState = args?.preloadedState ?? (({} as unknown) as PreloadedState<CombinedState<NoInfer<State>>>);
const debug = args?.debug ?? false; const debug = args?.debug ?? false;
let store: EnhancedStore<State> | null = null; let store: EnhancedStore<State> | null = null;
@ -57,7 +66,7 @@ export const reduxTester = <State>(args?: ReduxTesterArguments<State>): ReduxTes
} as any); } as any);
const givenRootReducer = (rootReducer: Reducer<State>): ReduxTesterWhen<State> => { const givenRootReducer = (rootReducer: Reducer<State>): ReduxTesterWhen<State> => {
store = configureStore<State>({ store = configureStore<State, AnyAction, Array<Middleware<State>>>({
reducer: rootReducer, reducer: rootReducer,
middleware: ([...defaultMiddleware, logActionsMiddleWare, thunk] as unknown) as [ThunkMiddleware<State>], middleware: ([...defaultMiddleware, logActionsMiddleWare, thunk] as unknown) as [ThunkMiddleware<State>],
preloadedState, preloadedState,

View File

@ -3473,7 +3473,7 @@ __metadata:
sinon: 12.0.1 sinon: 12.0.1
tinycolor2: 1.4.1 tinycolor2: 1.4.1
tslib: 2.3.1 tslib: 2.3.1
typescript: 4.4.3 typescript: 4.5.4
uplot: 1.6.16 uplot: 1.6.16
xss: 1.0.10 xss: 1.0.10
languageName: unknown languageName: unknown
@ -3492,7 +3492,7 @@ __metadata:
rollup-plugin-sourcemaps: 0.6.3 rollup-plugin-sourcemaps: 0.6.3
rollup-plugin-terser: 7.0.2 rollup-plugin-terser: 7.0.2
tslib: 2.3.1 tslib: 2.3.1
typescript: 4.4.3 typescript: 4.5.4
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -3525,7 +3525,7 @@ __metadata:
rollup-plugin-terser: 7.0.2 rollup-plugin-terser: 7.0.2
ts-loader: 6.2.1 ts-loader: 6.2.1
tslib: 2.3.1 tslib: 2.3.1
typescript: 4.4.3 typescript: 4.5.4
uuid: 8.3.0 uuid: 8.3.0
webpack: 5.65.0 webpack: 5.65.0
yaml: ^1.8.3 yaml: ^1.8.3
@ -3598,7 +3598,7 @@ __metadata:
rxjs: 7.5.1 rxjs: 7.5.1
systemjs: 0.20.19 systemjs: 0.20.19
tslib: 2.3.1 tslib: 2.3.1
typescript: 4.4.3 typescript: 4.5.4
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -3616,7 +3616,7 @@ __metadata:
rollup-plugin-sourcemaps: 0.6.3 rollup-plugin-sourcemaps: 0.6.3
rollup-plugin-terser: 7.0.2 rollup-plugin-terser: 7.0.2
tslib: 2.3.1 tslib: 2.3.1
typescript: 4.4.3 typescript: 4.5.4
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -3885,7 +3885,7 @@ __metadata:
tinycolor2: 1.4.1 tinycolor2: 1.4.1
ts-loader: 8.0.11 ts-loader: 8.0.11
tslib: 2.3.1 tslib: 2.3.1
typescript: 4.4.3 typescript: 4.5.4
uplot: 1.6.18 uplot: 1.6.18
uuid: 8.3.0 uuid: 8.3.0
webpack: 5.65.0 webpack: 5.65.0
@ -4008,7 +4008,7 @@ __metadata:
tinycolor2: 1.4.1 tinycolor2: 1.4.1
tslib: 2.3.1 tslib: 2.3.1
tween-functions: ^1.2.0 tween-functions: ^1.2.0
typescript: 4.4.3 typescript: 4.5.4
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -19729,7 +19729,7 @@ __metadata:
ts-loader: 9.2.6 ts-loader: 9.2.6
ts-node: 10.4.0 ts-node: 10.4.0
tslib: 2.3.1 tslib: 2.3.1
typescript: 4.4.3 typescript: 4.5.4
uplot: 1.6.18 uplot: 1.6.18
uuid: 8.3.0 uuid: 8.3.0
vendor: "link:./public/vendor" vendor: "link:./public/vendor"
@ -34377,7 +34377,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"typescript@npm:~4.5.2": "typescript@npm:4.5.4, typescript@npm:~4.5.2":
version: 4.5.4 version: 4.5.4
resolution: "typescript@npm:4.5.4" resolution: "typescript@npm:4.5.4"
bin: bin:
@ -34407,7 +34407,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"typescript@patch:typescript@~4.5.2#~builtin<compat/typescript>": "typescript@patch:typescript@4.5.4#~builtin<compat/typescript>, typescript@patch:typescript@~4.5.2#~builtin<compat/typescript>":
version: 4.5.4 version: 4.5.4
resolution: "typescript@patch:typescript@npm%3A4.5.4#~builtin<compat/typescript>::version=4.5.4&hash=493e53" resolution: "typescript@patch:typescript@npm%3A4.5.4#~builtin<compat/typescript>::version=4.5.4&hash=493e53"
bin: bin: