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:
parent
572cf61c1d
commit
a6efb29949
@ -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.
|
||||
|
||||
@ -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>)} />;
|
||||
}
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user