zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

Unnecessary use of `as type` in hooks generation

Open sakgoyal opened this issue 1 year ago • 0 comments

Description and expected behavior extra uses of as type that are not required. these can be omitted without any change.

This assertion is unnecessary since it does not change the type of the expression.sonarlint(typescript:S4325)

Screenshots image

Environment (please complete the following information):

  • ZenStack version: v2

** extra info ** this only happens on the mutate functions for createMany, updateMany, deleteMany.

sakgoyal avatar Mar 31 '24 02:03 sakgoyal