update steps

This commit is contained in:
Matt Hill
2023-05-15 15:13:28 -06:00
parent ad203acf21
commit 9c87b350d7
5 changed files with 7 additions and 14 deletions

View File

@@ -294,7 +294,7 @@ export class StartSdk<Manifest extends SDKManifest, Store, Vault> {
integer: boolean
min?: number | null
max?: number | null
step?: string | null
step?: number | null
units?: string | null
placeholder?: string | null
}
@@ -391,7 +391,7 @@ export class StartSdk<Manifest extends SDKManifest, Store, Vault> {
min?: number | null
max?: number | null
/** Default = '1' */
step?: string | null
step?: number | null
integer: boolean
units?: string | null
placeholder?: string | null
@@ -426,7 +426,6 @@ export class StartSdk<Manifest extends SDKManifest, Store, Vault> {
inputmode?: ValueSpecDatetime["inputmode"]
min?: string | null
max?: string | null
step?: string | null
disabled?: false | string
}
>,

View File

@@ -141,7 +141,7 @@ export class List<Type, Store, Vault> {
integer: boolean
min?: number | null
max?: number | null
step?: string | null
step?: number | null
units?: string | null
placeholder?: string | null
},
@@ -187,7 +187,7 @@ export class List<Type, Store, Vault> {
integer: boolean
min?: number | null
max?: number | null
step?: string | null
step?: number | null
units?: string | null
placeholder?: string | null
}

View File

@@ -299,7 +299,7 @@ export class Value<Type, Store, Vault> {
min?: number | null
max?: number | null
/** Default = '1' */
step?: string | null
step?: number | null
integer: boolean
units?: string | null
placeholder?: string | null
@@ -337,7 +337,7 @@ export class Value<Type, Store, Vault> {
min?: number | null
max?: number | null
/** Default = '1' */
step?: string | null
step?: number | null
integer: boolean
units?: string | null
placeholder?: string | null
@@ -429,7 +429,6 @@ export class Value<Type, Store, Vault> {
inputmode?: ValueSpecDatetime["inputmode"]
min?: string | null
max?: string | null
step?: string | null
/** Immutable means it can only be configed at the first config then never again
Default is false */
immutable?: boolean
@@ -464,7 +463,6 @@ export class Value<Type, Store, Vault> {
inputmode?: ValueSpecDatetime["inputmode"]
min?: string | null
max?: string | null
step?: string | null
disabled?: false | string
}
>,
@@ -479,7 +477,6 @@ export class Value<Type, Store, Vault> {
inputmode: "datetime-local",
min: null,
max: null,
step: null,
disabled: false,
immutable: false,
...a,

View File

@@ -80,7 +80,6 @@ export interface ValueSpecDatetime extends WithStandalone {
inputmode: "date" | "time" | "datetime-local"
min: string | null
max: string | null
step: string | null
default: string | null
disabled: false | string
/** Immutable means it can only be configed at the first config then never again */
@@ -190,7 +189,7 @@ export interface ListValueSpecNumber {
min: number | null
max: number | null
integer: boolean
step: string | null
step: number | null
units: string | null
placeholder: string | null
}

View File

@@ -101,7 +101,6 @@ describe("values", () => {
inputmode: "date",
min: null,
max: null,
step: null,
})
const validator = value.validator
validator.unsafeCast("2021-01-01")
@@ -116,7 +115,6 @@ describe("values", () => {
inputmode: "date",
min: null,
max: null,
step: null,
})
const validator = value.validator
validator.unsafeCast("2021-01-01")