From 5cd0ed23a564e9adec7decaeca53b706f46c916a Mon Sep 17 00:00:00 2001 From: axolotle Date: Fri, 5 Jul 2024 17:03:55 +0200 Subject: [PATCH] refactor: CheckboxItem typing --- .../globals/formItems/CheckboxItem.vue | 30 ++++++++++++------- app/src/types/form.ts | 7 +++++ 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/app/src/components/globals/formItems/CheckboxItem.vue b/app/src/components/globals/formItems/CheckboxItem.vue index 01a464c7..51d53d7a 100644 --- a/app/src/components/globals/formItems/CheckboxItem.vue +++ b/app/src/components/globals/formItems/CheckboxItem.vue @@ -1,31 +1,39 @@ diff --git a/app/src/types/form.ts b/app/src/types/form.ts index 0ac585ad..9c06af0a 100644 --- a/app/src/types/form.ts +++ b/app/src/types/form.ts @@ -26,3 +26,10 @@ export type AdressModelValue = { separator: string domain: string | null } + +export type CheckboxItemProps = BaseWritableItemProps & { + label?: string + labels?: { true: string; false: string } + // FIXME unused? + // choices: string[] +}