Skip to content

Commit

Permalink
fix(ability): removes sift specific types from casl
Browse files Browse the repository at this point in the history
`siftjs` introduced breaking changes in types in minor or patch version
  • Loading branch information
stalniy committed Jul 8, 2020
1 parent 80f0689 commit 9f18b31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/casl-ability/src/matchers/conditions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
Query,
createQueryTester as sift,
$eq,
$ne,
Expand Down Expand Up @@ -62,6 +61,6 @@ export function buildMongoQueryMatcher<T extends object>(
operations: Record<keyof T, any>
): Matcher<MongoQuery | T> {
const options = { operations: { ...defaultOperations, ...operations } };
return conditions => sift(conditions as unknown as Query, options);
return conditions => sift(conditions as any, options);
}
export const mongoQueryMatcher = buildMongoQueryMatcher({});

0 comments on commit 9f18b31

Please sign in to comment.