mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
import { ExpectedExports, PackageId } from "../types";
|
|
import { AutoConfig } from "./AutoConfig";
|
|
|
|
export function autoconfigSetup<Config>(
|
|
autoconfigs: Record<PackageId, AutoConfig<Config>>
|
|
) {
|
|
const autoconfig: ExpectedExports.autoConfig<Config> = {};
|
|
|
|
for (const [id, autoconfigValue] of Object.entries(autoconfigs)) {
|
|
autoconfig[id] = autoconfigValue.build();
|
|
}
|
|
|
|
return autoconfig;
|
|
}
|