chore: Use the types from the fronted system

This commit is contained in:
BluJ
2023-02-13 16:58:04 -07:00
parent 2989347a55
commit 1c4a14d631
13 changed files with 252 additions and 273 deletions

View File

@@ -1,11 +1,6 @@
import { YAML } from "../dependencies.ts";
import {
Config,
DependsOn,
Effects,
ExpectedExports,
SetResult,
} from "../types.ts";
import { DependsOn, Effects, ExpectedExports, SetResult } from "../types.ts";
import { ConfigSpec } from "../types/config-types.ts";
/**
* Will set the config to the default start9/config.yaml
@@ -15,11 +10,7 @@ import {
* @param depends_on This would be the depends on for condition depends_on
* @returns
*/
export const setConfig = async (
effects: Effects,
newConfig: Config,
dependsOn: DependsOn = {},
) => {
export const setConfig = async (effects: Effects, newConfig: ConfigSpec, dependsOn: DependsOn = {}) => {
await effects.createDir({
path: "start9",
volumeId: "main",