/** * 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 type { Stats } from "fs"; import fsInjectable from "./fs.injectable"; export type Stat = (path: string) => Promise; const statInjectable = getInjectable({ id: "stat", instantiate: (di): Stat => di.inject(fsInjectable).stat, }); export default statInjectable;