Skip to content

Commit

Permalink
🔥 Blacklist 'widget' property
Browse files Browse the repository at this point in the history
We don't use it an it's typed as any anyway, so it's not very useful.
  • Loading branch information
sergei-maertens committed Nov 13, 2023
1 parent c51f719 commit 781a880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/formio/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface OFExtensions<TK extends string = string> {
// Form.io defines *a lot* of optional properties in their component schema. We can omit
// the ones we never make use of to reduce confusion for the formio-renderer and
// formio-builder libraries.
type UnusedFormioProperties =
type UnusedFormioProperties =
| 'input' // often present in the schema, but I don't think we do anything with it
| 'tableView'
| 'protected'
Expand All @@ -85,6 +85,7 @@ type UnusedFormioProperties =
| 'customDefaultValue'
| 'calculateValue'
| 'allowCalculateOverride'
| 'widget'
| 'refreshOn'
| 'clearOnRefresh'
// we roll our own validate with only the relevant keys for each component
Expand Down

0 comments on commit 781a880

Please sign in to comment.