Skip to content

Commit 065adf8

Browse files
committed
fixes
1 parent ba9ebcc commit 065adf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

botasaurus-controls/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,12 @@ class Controls {
432432
}
433433

434434
switch(id: string, props: Omit<ControlInput<boolean>, "required"> = {}) {
435+
// @ts-ignore
435436
return this.add<boolean>(id, "switch", { defaultValue: false,parse:parseBoolean, ...props })
436437
}
437438

438439
checkbox(id: string, props: Omit<ControlInput<boolean>, "required"> = {}) {
440+
// @ts-ignore
439441
return this.add<boolean>(id, "checkbox", { defaultValue: false,parse:parseBoolean, ...props })
440442
}
441443

0 commit comments

Comments
 (0)