mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
# Conflicts: # src/common/catalog-entities/kubernetes-cluster.ts # src/common/catalog-entities/web-link.ts # src/common/catalog/catalog-category-registry.ts # src/extensions/core-api/catalog.ts # src/main/cluster-manager.ts # src/renderer/api/catalog-entity-registry.ts # src/renderer/components/+catalog/catalog-entity.store.ts
13 lines
501 B
TypeScript
13 lines
501 B
TypeScript
import { CatalogEntity, catalogEntityRegistry as registry } from "../../common/catalog";
|
|
|
|
export { catalogCategoryRegistry as catalogCategories } from "../../common/catalog/catalog-category-registry";
|
|
export * from "../../common/catalog-entities";
|
|
|
|
export class CatalogEntityRegistry {
|
|
getItemsForApiKind<T extends CatalogEntity>(apiVersion: string, kind: string): T[] {
|
|
return registry.getItemsForApiKind<T>(apiVersion, kind);
|
|
}
|
|
}
|
|
|
|
export const catalogEntities = new CatalogEntityRegistry();
|