mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
933f97ee7e
commit
c4f177fe58
@ -19,15 +19,5 @@
|
|||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { CatalogEntity } from "../../common/catalog";
|
export * from "../../common/catalog-entities";
|
||||||
import { catalogEntityRegistry as registry } from "../../main/catalog";
|
export * from "../../common/catalog/catalog-entity";
|
||||||
|
|
||||||
export { catalogCategoryRegistry as catalogCategories } from "../../common/catalog/catalog-category-registry";
|
|
||||||
|
|
||||||
export class CatalogEntityRegistry {
|
|
||||||
getItemsForApiKind<T extends CatalogEntity>(apiVersion: string, kind: string): T[] {
|
|
||||||
return registry.getItemsForApiKind<T>(apiVersion, kind);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const catalogEntities = new CatalogEntityRegistry();
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user