mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
808875f491
commit
9cfc34e547
8 files changed
+13
-12
No files matched your search
@@ -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)} />;
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user