Add typing to transient injectable

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-12-06 09:18:59 -05:00
1 parent 5a1fd72767
commit ace5673a3d
1 file changed
+3 -1
@@ -4,11 +4,12 @@
*/
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import { observable } from "mobx";
import type { HelmRepo } from "../../../../../../common/helm/helm-repo";
const customHelmRepoInjectable = getInjectable({
id: "custom-helm-repo",
instantiate: () => observable({
instantiate: () => observable.object<HelmRepo>({
name: "",
url: "",
username: "",
@@ -17,6 +18,7 @@ const customHelmRepoInjectable = getInjectable({
caFile: "",
keyFile: "",
certFile: "",
cacheFilePath: "",
}),
lifecycle: lifecycleEnum.transient,