mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
clean up defaults
This commit is contained in:
@@ -103,7 +103,7 @@ export class Value<Type, WD> {
|
||||
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<Type, WD> {
|
||||
async () => ({
|
||||
description: null,
|
||||
warning: null,
|
||||
default: null,
|
||||
type: "toggle" as const,
|
||||
disabled: false,
|
||||
immutable: a.immutable ?? false,
|
||||
@@ -128,7 +127,7 @@ export class Value<Type, WD> {
|
||||
name: string
|
||||
description?: string | null
|
||||
warning?: string | null
|
||||
default?: boolean | null
|
||||
default: boolean
|
||||
disabled?: false | string
|
||||
}
|
||||
>,
|
||||
@@ -137,7 +136,6 @@ export class Value<Type, WD> {
|
||||
async (options) => ({
|
||||
description: null,
|
||||
warning: null,
|
||||
default: null,
|
||||
type: "toggle" as const,
|
||||
disabled: false,
|
||||
immutable: false,
|
||||
@@ -613,7 +611,6 @@ export class Value<Type, WD> {
|
||||
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<Type, WD> {
|
||||
description?: string | null
|
||||
warning?: string | null
|
||||
required: Required
|
||||
default?: string | null
|
||||
},
|
||||
aVariants: Variants<Type, WrapperData> | Variants<Type, never>,
|
||||
) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SDKManifest } from "../manifest/ManifestTypes"
|
||||
import { Dependency, PackageId } from "../types"
|
||||
import { Dependency } from "../types"
|
||||
|
||||
export type Dependencies<T extends SDKManifest> = {
|
||||
exists(id: keyof T["dependencies"]): Dependency
|
||||
|
||||
Reference in New Issue
Block a user