From 6d87c418ceae8c0eda96374500aac964c5fdc849 Mon Sep 17 00:00:00 2001 From: kevinkosterr Date: Thu, 24 Jul 2025 19:47:42 +0200 Subject: [PATCH] fix(FieldSwitch): fix type property `type` --- src/resources/types/field/fields.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/resources/types/field/fields.ts b/src/resources/types/field/fields.ts index dec587c..71da28b 100644 --- a/src/resources/types/field/fields.ts +++ b/src/resources/types/field/fields.ts @@ -86,7 +86,9 @@ export type ButtonField = ButtonFieldBase & { onClick?: (model: FormModel, field: Field) => void; } -export type SwitchField = FieldBase +export type SwitchField = FieldBase & { + type: 'switch'; +} export type ResetField = ButtonFieldBase & { type: 'reset';