mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
clean up defaults
This commit is contained in:
@@ -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>,
|
||||||
) => {
|
) => {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user