Skip to content

Commit f690cb5

Browse files
authored
Merge pull request #40 from kevinkosterr/updates
fix(FieldSwitch): fix type property `type`
2 parents ae95311 + 6d87c41 commit f690cb5

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)