chore: Update to the new dependencyConfig

This commit is contained in:
BluJ
2023-05-10 16:49:10 -06:00
parent cdf42ca3b6
commit 9521865c59
6 changed files with 140 additions and 132 deletions

View File

@@ -0,0 +1,22 @@
import { Config } from "../config/builder/config"
import { SDKManifest } from "../manifest/ManifestTypes"
import { DependencyConfig } from "./DependencyConfig"
export function setupDependencyConfig<
Store,
Vault,
Input extends Record<string, any>,
Manifest extends SDKManifest,
>(
_config: Config<Input, Store, Vault>,
autoConfigs: {
[key in keyof Manifest["dependencies"] & string]: DependencyConfig<
Store,
Vault,
Input,
any
>
},
) {
return autoConfigs
}