Skip to content

Commit

Permalink
[IMP] types: correctly support Set type for props-validation
Browse files Browse the repository at this point in the history
Previously, having a Set as a type in the static props description
of a component would would lead to a type error.

This commit adds Set to the list of supported types in the Schema
  • Loading branch information
pro-odoo committed Mar 26, 2024
1 parent 33dfeb1 commit fcd6b2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type BaseType =
| typeof Object
| typeof Array
| typeof Function
| typeof Set
| true
| "*";

Expand Down

0 comments on commit fcd6b2a

Please sign in to comment.