Chore: Update typescript to v4.2.4 (#33297)

* Update typescript to v4.2.4

* Update @types/slate

* Fix QueryVariableEditor.test.tsx

* Fix search-related type errors

* Fix Plugin pages type errors

* Fix missing initializer errors

* Update snapshot

* Revert tsconfig changes
This commit is contained in:
Alex Khomenko
2021-04-28 15:40:01 +03:00
committed by GitHub
parent bac8b967be
commit 6d95f2f1db
41 changed files with 125 additions and 157 deletions

View File

@@ -38,7 +38,7 @@ interface Props {
index: number;
timeRange?: TimeRange;
onChangeTimeRange?: (timeRange: TimeRange) => void;
onAddQuery: (query?: DataQuery) => void;
onAddQuery: (query: DataQuery) => void;
onRemoveQuery: (query: DataQuery) => void;
onChange: (query: DataQuery) => void;
onRunQuery: () => void;
@@ -55,7 +55,7 @@ interface State {
export class QueryEditorRow extends PureComponent<Props, State> {
element: HTMLElement | null = null;
angularScope: AngularQueryComponentScope | null;
angularScope: AngularQueryComponentScope | null = null;
angularQueryEditor: AngularComponent | null = null;
state: State = {

View File

@@ -51,7 +51,7 @@ interface State {
export class QueryGroup extends PureComponent<Props, State> {
backendSrv = backendSrv;
dataSourceSrv = getDataSourceSrv();
querySubscription: Unsubscribable | null;
querySubscription: Unsubscribable | null = null;
state: State = {
isLoadingHelp: false,