Add promise support on filters #648
Reference in New Issue
Block a user
Delete Branch "infinum/feature/filters-as-promise"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sometimes you need to do something more in your filter function (will send you another PR for that) and because of that, it would be better to have the isValid method wrapped in a Promise.
There si one catch, cause of the variable
this._failFilterIndexwe need to resolve each time, so for the users who will use promises they always need to resolve, either with true or false.Codecov Report
39.7% <27.27%> (+14.51%)27.27% <0%> (+5.05%)57.14% <0%> (+14.28%)47.36% <0%> (+15.78%)53.84% <0%> (+30.76%)95.45% <0%> (+40.9%)87.03% <0%> (+49.3%)Continue to review full report at Codecov.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.