Skip to content

Commit

Permalink
fix: removes release testing comments (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy authored May 5, 2023
1 parent 40e67b8 commit 67ccbc9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/casl-ability/src/Ability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export interface MongoAbility<
C extends MongoQuery = MongoQuery
> extends PureAbility<A, C> {}

/**
* Creates Ability with MongoDB conditions matcher
*/
export function createMongoAbility<
T extends AnyMongoAbility = MongoAbility
>(rules?: RawRuleOf<T>[], options?: AbilityOptionsOf<T>): T;
Expand Down
3 changes: 0 additions & 3 deletions packages/casl-mongoose/src/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ function convertToMongoQuery(rule: AnyMongoAbility['rules'][number]) {
return rule.inverted ? { $nor: [conditions] } : conditions;
}

/**
* Converts ability action + subjectType to MongoDB query
*/
export function toMongoQuery<T extends AnyMongoAbility>(
ability: T,
subjectType: Parameters<T['rulesFor']>[1],
Expand Down

0 comments on commit 67ccbc9

Please sign in to comment.