mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: bump package.json
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
86fa93ac8b
commit
58e4ebcdea
25 files changed
+57
-43
No files matched your search
@@ -2,11 +2,17 @@
|
||||
* 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 { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
|
||||
import { v4 as getRandomId } from "uuid";
|
||||
|
||||
export type GetRandomId = () => string;
|
||||
export const getRandomIdInjectionToken = getInjectionToken<GetRandomId>({
|
||||
id: "get-random-id-injection-token",
|
||||
});
|
||||
|
||||
export const getRandomIdInjectable = getInjectable({
|
||||
id: "get-random-id",
|
||||
instantiate: () => () => getRandomId(),
|
||||
instantiate: (): GetRandomId => () => getRandomId(),
|
||||
causesSideEffects: true,
|
||||
injectionToken: getRandomIdInjectionToken,
|
||||
});
|
||||
Reference in new issue
Block a user