Bump typescript from 4.6.4 to 4.7.3 (#5571)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
dependabot[bot]andSebastian Malton authored and GitHub committed 2022-06-13 14:30:24 -04:00
1 parent 808875f491
commit 9cfc34e547
8 files changed
+13 -12

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import "abort-controller/polyfill";
import type { AbortSignal } from "abort-controller";
/**
* Creates a new promise that will be rejected when the signal rejects.
@@ -23,6 +23,7 @@ import createInstallChartTabInjectable from "../dock/install-chart/create-instal
import { Notifications } from "../notifications";
import HelmLogoPlaceholder from "./helm-placeholder.svg";
import type { SingleValue } from "react-select";
import { AbortController } from "abort-controller";
export interface HelmChartDetailsProps {
chart: HelmChart;
@@ -82,5 +82,5 @@ const InjectedNamespaceSelect = withInjectables<Dependencies, NamespaceSelectPro
});
export function NamespaceSelect<IsMulti extends boolean = false>(props: NamespaceSelectProps<IsMulti>): JSX.Element {
return <InjectedNamespaceSelect {...(props as never)} />;
return <InjectedNamespaceSelect {...(props as unknown as NamespaceSelectProps<boolean>)} />;
}
@@ -84,5 +84,5 @@ class DefaultedEditableList<T> extends React.Component<EditableListProps<T> & ty
}
export function EditableList<T>(props: EditableListProps<T>) {
return <DefaultedEditableList {...props as never}/>;
return <DefaultedEditableList {...props as object}/>;
}
@@ -204,7 +204,7 @@ class DefaultedFilePicker extends React.Component<FilePickerProps & typeof defau
return (
<div className="FilePicker">
<label className="flex gaps align-center" htmlFor="file-upload">
{label}
{label}
{" "}
{this.getIconRight()}
</label>
@@ -232,4 +232,4 @@ class DefaultedFilePicker extends React.Component<FilePickerProps & typeof defau
}
}
export const FilePicker = (props: FilePickerProps) => <DefaultedFilePicker {...(props as never)} />;
export const FilePicker = (props: FilePickerProps) => <DefaultedFilePicker {...(props as FilePickerProps & typeof defaultProps)} />;
+2 -2
View File
@@ -450,8 +450,8 @@ export class Input extends React.Component<InputProps, State> {
<label className="input-area flex gaps align-center" id="">
{this.renderIcon(iconLeft)}
{multiLine
? <textarea {...inputProps as never} />
: <input {...inputProps as never} />
? <textarea {...inputProps as object} />
: <input {...inputProps as object} />
}
{this.renderIcon(iconRight)}
{contentRight}