Use of anyof with many different options

#1

I would like to use anyof because I have a field that can be of many different types.
Is this good practice/recommended to defined the field such as:

value: anyof(Currency, Country, datetime, boolean, integer, string)

Is there an alternative?

0 Likes