1
0
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:
Janne Savolainen 2022-04-13 10:23:31 +03:00
parent 8d2639532b
commit cf052b9070
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
3 changed files with 20 additions and 0 deletions

View 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;

View File

@ -95,4 +95,7 @@ export class CatalogCategoryRegistry {
} }
} }
/**
* @deprecated Switch to using catalogCategoryRegistryInjectable
*/
export const catalogCategoryRegistry = new CatalogCategoryRegistry(); export const catalogCategoryRegistry = new CatalogCategoryRegistry();

View File

@ -49,4 +49,7 @@ export class CatalogEntityRegistry {
} }
} }
/**
* @deprecated Switch to using catalogEntityRegistryInjectable
*/
export const catalogEntityRegistry = new CatalogEntityRegistry(catalogCategoryRegistry); export const catalogEntityRegistry = new CatalogEntityRegistry(catalogCategoryRegistry);