Bug: the type of the beforeBulkDestroy
hander's options
attribute is BulkCreateOptions
instead of BulkDestroyOptions
#17246
Labels
pending-approval
Bug reports that have not been verified yet, or feature requests that have not been accepted yet
In my use case I needed to access the
where
attribute of theoptions
property that's passed to the callback/handler passed tobeforeBulkDestroy
. However since that's described as anBulkCreateOptions
not aBulkDestroyOptions
, that isn't possible when using the inferred type in TypeScript.Here is the patch that solved my problem:
However I didn't dig to see if there's a better implementation, or if there's more to change, this just minimally solved my problem.
The text was updated successfully, but these errors were encountered: