1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common/fs/read-json-sync.injectable.ts
Sebastian Malton ad814ebdf6 Introduce method to make store migrations injectable
- Use it for ClusterStore

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:58 -05:00

14 lines
424 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 fsInjectable from "./fs.injectable";
const readJsonSyncInjectable = getInjectable({
id: "read-json-sync",
instantiate: (di) => di.inject(fsInjectable).readJsonSync,
});
export default readJsonSyncInjectable;