From 4c4435ae2cabb92f53e1785374115e8003c29396 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Fri, 5 May 2023 15:33:33 -0600 Subject: [PATCH] clean up defaults --- lib/config/builder/value.ts | 8 ++------ lib/config/dependencies.ts | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/config/builder/value.ts b/lib/config/builder/value.ts index 435eb1b..0eb564f 100644 --- a/lib/config/builder/value.ts +++ b/lib/config/builder/value.ts @@ -103,7 +103,7 @@ export class Value { name: string description?: string | null warning?: string | null - default?: boolean | null + default: boolean /** Immutable means it can only be configed at the first config then never again Default is false */ immutable?: boolean @@ -112,7 +112,6 @@ export class Value { async () => ({ description: null, warning: null, - default: null, type: "toggle" as const, disabled: false, immutable: a.immutable ?? false, @@ -128,7 +127,7 @@ export class Value { name: string description?: string | null warning?: string | null - default?: boolean | null + default: boolean disabled?: false | string } >, @@ -137,7 +136,6 @@ export class Value { async (options) => ({ description: null, warning: null, - default: null, type: "toggle" as const, disabled: false, immutable: false, @@ -613,7 +611,6 @@ export class Value { description?: string | null warning?: string | null required: Required - default?: string | null /** Immutable means it can only be configed at the first config then never again Default is false */ immutable?: boolean @@ -645,7 +642,6 @@ export class Value { description?: string | null warning?: string | null required: Required - default?: string | null }, aVariants: Variants | Variants, ) => { diff --git a/lib/config/dependencies.ts b/lib/config/dependencies.ts index f541b0c..b974160 100644 --- a/lib/config/dependencies.ts +++ b/lib/config/dependencies.ts @@ -1,5 +1,5 @@ import { SDKManifest } from "../manifest/ManifestTypes" -import { Dependency, PackageId } from "../types" +import { Dependency } from "../types" export type Dependencies = { exists(id: keyof T["dependencies"]): Dependency