Skip to content

Commit

Permalink
fix(ability): adds on method into typescript defs
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Nov 11, 2018
1 parent 565936d commit 86e35cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/casl-ability/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export class Ability {
rulesFor(action: string, subject: any, field?: string): Rule[]

throwUnlessCan(action: string, subject: any, field?: string): void

on(event: string, listen: Function): Function
}

export class RuleBuilder {
Expand Down

0 comments on commit 86e35cc

Please sign in to comment.