mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
update specs a little
This commit is contained in:
@@ -159,8 +159,9 @@ export class Value<Type, Store, Vault> {
|
||||
patterns?: Pattern[]
|
||||
/** Default = 'text' */
|
||||
inputmode?: ValueSpecText["inputmode"]
|
||||
/** Immutable means it can only be configed at the first config then never again
|
||||
Default is false */
|
||||
/** Immutable means it can only be configured at the first config then never again
|
||||
* Default is false
|
||||
*/
|
||||
immutable?: boolean
|
||||
generate?: null | RandomString
|
||||
}) {
|
||||
@@ -202,6 +203,10 @@ export class Value<Type, Store, Vault> {
|
||||
patterns?: Pattern[]
|
||||
/** Default = 'text' */
|
||||
inputmode?: ValueSpecText["inputmode"]
|
||||
disabled?: string | false
|
||||
/** Immutable means it can only be configured at the first config then never again
|
||||
* Default is false
|
||||
*/
|
||||
generate?: null | RandomString
|
||||
}
|
||||
>,
|
||||
@@ -240,7 +245,6 @@ export class Value<Type, Store, Vault> {
|
||||
/** Immutable means it can only be configed at the first config then never again
|
||||
Default is false */
|
||||
immutable?: boolean
|
||||
generate?: null | RandomString
|
||||
}) {
|
||||
return new Value<string, never, never>(async () => {
|
||||
const built: ValueSpecTextarea = {
|
||||
@@ -252,7 +256,6 @@ export class Value<Type, Store, Vault> {
|
||||
type: "textarea" as const,
|
||||
disabled: false,
|
||||
immutable: a.immutable ?? false,
|
||||
generate: a.generate ?? null,
|
||||
...a,
|
||||
}
|
||||
return built
|
||||
@@ -271,7 +274,6 @@ export class Value<Type, Store, Vault> {
|
||||
maxLength?: number | null
|
||||
placeholder?: string | null
|
||||
disabled?: false | string
|
||||
generate?: null | RandomString
|
||||
}
|
||||
>,
|
||||
) {
|
||||
@@ -286,7 +288,6 @@ export class Value<Type, Store, Vault> {
|
||||
type: "textarea" as const,
|
||||
disabled: false,
|
||||
immutable: false,
|
||||
generate: a.generate ?? null,
|
||||
...a,
|
||||
}
|
||||
}, string)
|
||||
@@ -399,7 +400,6 @@ export class Value<Type, Store, Vault> {
|
||||
description?: string | null
|
||||
warning?: string | null
|
||||
required: RequiredDefault<string>
|
||||
|
||||
disabled?: false | string
|
||||
}
|
||||
>,
|
||||
|
||||
@@ -55,7 +55,6 @@ export interface ValueSpecTextarea extends WithStandalone {
|
||||
maxLength: number | null
|
||||
required: boolean
|
||||
disabled: false | string
|
||||
generate: null | RandomString
|
||||
/** Immutable means it can only be configed at the first config then never again */
|
||||
immutable: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user