mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
13 lines
448 B
TypeScript
13 lines
448 B
TypeScript
|
|
import { computed } from "mobx";
|
|
import { CatalogEntity } from "../../common/catalog-entity";
|
|
import { catalogEntityRegistry as registry } from "../../common/catalog-entity-registry";
|
|
|
|
export class CatalogEntityRegistry {
|
|
@computed getItemsForApiKind<T extends CatalogEntity>(apiVersion: string, kind: string): T[] {
|
|
return registry.getItemsForApiKind<T>(apiVersion, kind);
|
|
}
|
|
}
|
|
|
|
export const catalogEntities = new CatalogEntityRegistry();
|