Skip to content

Commit

Permalink
fix(ts): adds conditions to typescript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Dec 19, 2017
1 parent 257aba2 commit a345da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export class Ability {
export abstract class AbilityBuilderParts {
rules: Rule[]

can(action: string | string[], subject: string | string[]): Rule
can(action: string | string[], subject: string | string[], conditions?: any): Rule

cannot(action: string | string[], subject: string | string[]): Rule
cannot(action: string | string[], subject: string | string[], conditions?: any): Rule
}

export class AbilityBuilder extends AbilityBuilderParts {
Expand Down

0 comments on commit a345da7

Please sign in to comment.