diff --git a/src/formio/components/checkbox.ts b/src/formio/components/checkbox.ts index 5ee7dd1..342313a 100644 --- a/src/formio/components/checkbox.ts +++ b/src/formio/components/checkbox.ts @@ -13,5 +13,4 @@ export interface CheckboxComponentSchema extends Omit { type: 'checkbox'; defaultValue: boolean; - multiple?: false; } diff --git a/src/formio/components/selectboxes.ts b/src/formio/components/selectboxes.ts index 4a25b46..8edf39b 100644 --- a/src/formio/components/selectboxes.ts +++ b/src/formio/components/selectboxes.ts @@ -18,7 +18,6 @@ export type SelectboxesInputSchema = InputComponentSchema< interface BaseSelectboxesSchema { type: 'selectboxes'; defaultValue: Record; - multiple?: false; } /** diff --git a/test-d/formio/components/checkbox.test-d.ts b/test-d/formio/components/checkbox.test-d.ts index 619f95e..11a1630 100644 --- a/test-d/formio/components/checkbox.test-d.ts +++ b/test-d/formio/components/checkbox.test-d.ts @@ -12,16 +12,6 @@ expectAssignable({ }); -// multiple false and appropriate default value type -expectAssignable({ - id: 'yejak', - type: 'checkbox', - key: 'someCheckbox', - label: 'Some checkbox', - multiple: false, - defaultValue: true, -}); - // full, correct schema expectAssignable({ id: 'yejak', @@ -34,7 +24,6 @@ expectAssignable({ showInSummary: true, showInEmail: false, showInPDF: true, - multiple: false, hidden: false, clearOnHide: true, isSensitiveData: true, @@ -66,13 +55,13 @@ expectAssignable({ validateOn: 'blur', }); -// multiple true not allowed +// multiple not allowed expectNotAssignable({ id: 'yejak', type: 'checkbox', key: 'someCheckbox', label: 'Some checkbox', - multiple: true, + multiple: 'dummy', }); // defaultValue not allowed diff --git a/test-d/formio/components/selectboxes.test-d.ts b/test-d/formio/components/selectboxes.test-d.ts index 2a0f29d..83a5f18 100644 --- a/test-d/formio/components/selectboxes.test-d.ts +++ b/test-d/formio/components/selectboxes.test-d.ts @@ -35,28 +35,12 @@ expectAssignable({ }, }); -// multiple false and appropriate default value type -expectAssignable({ - id: 'yejak', - type: 'selectboxes', - key: 'someSelectboxes', - label: 'Some selectboxes', - multiple: false, - defaultValue: {dummy: true}, - openForms: { - dataSrc: 'variable', - itemsExpression: 'dummy', - translations: {}, - }, -}); - // values translations expectAssignable({ id: 'yejak', type: 'selectboxes', key: 'someSelectboxes', label: 'Some selectboxes', - multiple: false, defaultValue: {dummy: true}, openForms: { dataSrc: 'manual', @@ -92,7 +76,6 @@ expectAssignable({ showInSummary: true, showInEmail: false, showInPDF: true, - multiple: false, hidden: false, clearOnHide: true, isSensitiveData: true, @@ -134,13 +117,13 @@ expectNotAssignable({ label: 'Some selectboxes', }); -// multiple true not allowed +// multiple not allowed expectNotAssignable({ id: 'yejak', type: 'selectboxes', key: 'someSelectboxes', label: 'Some selectboxes', - multiple: true, + multiple: 'dummy', openForms: { dataSrc: 'variable', itemsExpression: 'dummy',