Improve naming of type parameter

Signed-off-by: Janne Savolainen <janne.savolainen@houston-inc.com>
This commit is contained in:
Janne Savolainen authored and Janne Savolainen committed 2021-12-04 12:16:33 +02:00
1 parent 73e3dd95f4
commit a0f0d3e811
1 file changed
+4 -4
@@ -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,