1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common/utils/get-random-id.injectable.ts
Janne Savolainen 700c756bf3
Improve typing for a function
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-07-18 15:51:18 +03:00

15 lines
427 B
TypeScript

/**
* 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 { v4 as getRandomId } from "uuid";
const getRandomIdInjectable = getInjectable({
id: "get-random-id",
instantiate: () => () => getRandomId(),
causesSideEffects: true,
});
export default getRandomIdInjectable;