mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
933f97ee7e
commit
c4f177fe58
1 file changed
+2
-12
@@ -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();
|
|
||||||
Reference in new issue
Block a user