mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Deprecate some globals
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
8d2639532b
commit
cf052b9070
14
src/common/catalog/catalog-category-registry.injectable.ts
Normal file
14
src/common/catalog/catalog-category-registry.injectable.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||||
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
|
*/
|
||||||
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
|
import { catalogCategoryRegistry } from "./catalog-category-registry";
|
||||||
|
|
||||||
|
const catalogCategoryRegistryInjectable = getInjectable({
|
||||||
|
id: "catalog-category-registry",
|
||||||
|
instantiate: () => catalogCategoryRegistry,
|
||||||
|
causesSideEffects: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
export default catalogCategoryRegistryInjectable;
|
||||||
@ -95,4 +95,7 @@ export class CatalogCategoryRegistry {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Switch to using catalogCategoryRegistryInjectable
|
||||||
|
*/
|
||||||
export const catalogCategoryRegistry = new CatalogCategoryRegistry();
|
export const catalogCategoryRegistry = new CatalogCategoryRegistry();
|
||||||
|
|||||||
@ -49,4 +49,7 @@ export class CatalogEntityRegistry {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Switch to using catalogEntityRegistryInjectable
|
||||||
|
*/
|
||||||
export const catalogEntityRegistry = new CatalogEntityRegistry(catalogCategoryRegistry);
|
export const catalogEntityRegistry = new CatalogEntityRegistry(catalogCategoryRegistry);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user