clean up defaults

This commit is contained in:
Matt Hill
2023-05-05 15:33:33 -06:00
parent beecea8a5c
commit 4c4435ae2c
2 changed files with 3 additions and 7 deletions

View File

@@ -103,7 +103,7 @@ export class Value<Type, WD> {
name: string name: string
description?: string | null description?: string | null
warning?: string | null warning?: string | null
default?: boolean | null default: boolean
/** Immutable means it can only be configed at the first config then never again /** Immutable means it can only be configed at the first config then never again
Default is false */ Default is false */
immutable?: boolean immutable?: boolean
@@ -112,7 +112,6 @@ export class Value<Type, WD> {
async () => ({ async () => ({
description: null, description: null,
warning: null, warning: null,
default: null,
type: "toggle" as const, type: "toggle" as const,
disabled: false, disabled: false,
immutable: a.immutable ?? false, immutable: a.immutable ?? false,
@@ -128,7 +127,7 @@ export class Value<Type, WD> {
name: string name: string
description?: string | null description?: string | null
warning?: string | null warning?: string | null
default?: boolean | null default: boolean
disabled?: false | string disabled?: false | string
} }
>, >,
@@ -137,7 +136,6 @@ export class Value<Type, WD> {
async (options) => ({ async (options) => ({
description: null, description: null,
warning: null, warning: null,
default: null,
type: "toggle" as const, type: "toggle" as const,
disabled: false, disabled: false,
immutable: false, immutable: false,
@@ -613,7 +611,6 @@ export class Value<Type, WD> {
description?: string | null description?: string | null
warning?: string | null warning?: string | null
required: Required required: Required
default?: string | null
/** Immutable means it can only be configed at the first config then never again /** Immutable means it can only be configed at the first config then never again
Default is false */ Default is false */
immutable?: boolean immutable?: boolean
@@ -645,7 +642,6 @@ export class Value<Type, WD> {
description?: string | null description?: string | null
warning?: string | null warning?: string | null
required: Required required: Required
default?: string | null
}, },
aVariants: Variants<Type, WrapperData> | Variants<Type, never>, aVariants: Variants<Type, WrapperData> | Variants<Type, never>,
) => { ) => {

View File

@@ -1,5 +1,5 @@
import { SDKManifest } from "../manifest/ManifestTypes" import { SDKManifest } from "../manifest/ManifestTypes"
import { Dependency, PackageId } from "../types" import { Dependency } from "../types"
export type Dependencies<T extends SDKManifest> = { export type Dependencies<T extends SDKManifest> = {
exists(id: keyof T["dependencies"]): Dependency exists(id: keyof T["dependencies"]): Dependency