diff --git a/lib/StartSdk.ts b/lib/StartSdk.ts index dee1f03..b771f73 100644 --- a/lib/StartSdk.ts +++ b/lib/StartSdk.ts @@ -294,7 +294,7 @@ export class StartSdk { 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 { 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 { inputmode?: ValueSpecDatetime["inputmode"] min?: string | null max?: string | null - step?: string | null disabled?: false | string } >, diff --git a/lib/config/builder/list.ts b/lib/config/builder/list.ts index c25f9b6..6198fc6 100644 --- a/lib/config/builder/list.ts +++ b/lib/config/builder/list.ts @@ -141,7 +141,7 @@ export class List { 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 { integer: boolean min?: number | null max?: number | null - step?: string | null + step?: number | null units?: string | null placeholder?: string | null } diff --git a/lib/config/builder/value.ts b/lib/config/builder/value.ts index 953eee2..89c72c7 100644 --- a/lib/config/builder/value.ts +++ b/lib/config/builder/value.ts @@ -299,7 +299,7 @@ export class Value { 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 { 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 { 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 { inputmode?: ValueSpecDatetime["inputmode"] min?: string | null max?: string | null - step?: string | null disabled?: false | string } >, @@ -479,7 +477,6 @@ export class Value { inputmode: "datetime-local", min: null, max: null, - step: null, disabled: false, immutable: false, ...a, diff --git a/lib/config/configTypes.ts b/lib/config/configTypes.ts index 662c918..5bccd56 100644 --- a/lib/config/configTypes.ts +++ b/lib/config/configTypes.ts @@ -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 } diff --git a/lib/test/configBuilder.test.ts b/lib/test/configBuilder.test.ts index 1ea8835..d8f98e0 100644 --- a/lib/test/configBuilder.test.ts +++ b/lib/test/configBuilder.test.ts @@ -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")