mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add typing to transient injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
5a1fd72767
commit
ace5673a3d
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user