Skip to content

Commit 6d87c41

Browse files
committed
fix(FieldSwitch): fix type property type
1 parent 872c635 commit 6d87c41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resources/types/field/fields.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export type ButtonField = ButtonFieldBase & {
8686
onClick?: (model: FormModel, field: Field) => void;
8787
}
8888

89-
export type SwitchField = FieldBase
89+
export type SwitchField = FieldBase & {
90+
type: 'switch';
91+
}
9092

9193
export type ResetField = ButtonFieldBase & {
9294
type: 'reset';

0 commit comments

Comments
 (0)