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

Improve naming of type parameter

Signed-off-by: Janne Savolainen <janne.savolainen@houston-inc.com>
This commit is contained in:
Janne Savolainen 2021-11-04 10:43:00 +02:00 committed by Janne Savolainen
parent 73e3dd95f4
commit a0f0d3e811

View File

@ -30,13 +30,13 @@ import type { IGettableStore } from "../../../common/k8s-api/api-manager";
import type { IHasName } from "../../../main/cluster";
export interface KubeObjectMenuProps<T> extends MenuActionsProps {
object: T | null | undefined;
export interface KubeObjectMenuProps<TKubeObject> extends MenuActionsProps {
object: TKubeObject | null | undefined;
editable?: boolean;
removable?: boolean;
}
interface KubeObjectMenuDependencies<T> extends KubeObjectMenuProps<T>{
interface KubeObjectMenuDependencies<TKubeObject> extends KubeObjectMenuProps<TKubeObject>{
apiManager: IGettableStore,
kubeObjectMenuRegistry: IHasGettableItemsForKind
cluster: IHasName,
@ -44,7 +44,7 @@ interface KubeObjectMenuDependencies<T> extends KubeObjectMenuProps<T>{
editResourceTab: Function,
}
export class KubeObjectMenu<T extends KubeObject> extends React.Component<KubeObjectMenuDependencies<T>> {
export class KubeObjectMenu<TKubeObject extends KubeObject> extends React.Component<KubeObjectMenuDependencies<TKubeObject>> {
get dependencies() {
const {
apiManager,