1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/extensions/core-api/catalog.ts
Roman c19be88691 Merge remote-tracking branch 'origin/master' into mobx-6.2
# 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
2021-04-25 20:55:20 +03:00

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();