Migrations should support readonly arrays for createType().asEnum()
#1118
Labels
api
Related to library's API
enhancement
New feature or request
greenlit
Ready for implementation
migrations
Related to migrations
typescript
Related to Typescript
This is a common way to generate enum unions by some that provides a list of the values for runtime checking.
Unfortunately, the example
ProcessType
cannot be passed tocreateType().asEnum()
since it is a read-only array and results in:I suspect asEnum does not mutate the passed array and could except readonly arrays.
The text was updated successfully, but these errors were encountered: