1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-06-07 16:28:13 -04:00
parent 572cf61c1d
commit a6efb29949
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
* Licensed under MIT License. See LICENSE in root directory for more information. * 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. * Creates a new promise that will be rejected when the signal rejects.

View File

@ -82,5 +82,5 @@ const InjectedNamespaceSelect = withInjectables<Dependencies, NamespaceSelectPro
}); });
export function NamespaceSelect<IsMulti extends boolean = false>(props: NamespaceSelectProps<IsMulti>): JSX.Element { 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>)} />;
} }

View File

@ -450,8 +450,8 @@ export class Input extends React.Component<InputProps, State> {
<label className="input-area flex gaps align-center" id=""> <label className="input-area flex gaps align-center" id="">
{this.renderIcon(iconLeft)} {this.renderIcon(iconLeft)}
{multiLine {multiLine
? <textarea {...inputProps as never} /> ? <textarea {...inputProps as object} />
: <input {...inputProps as never} /> : <input {...inputProps as object} />
} }
{this.renderIcon(iconRight)} {this.renderIcon(iconRight)}
{contentRight} {contentRight}