Skip to content

Commit

Permalink
Fix CreateAbility type (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarzda authored Sep 28, 2022
1 parent 25b1b8e commit ef48c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/casl-ability/src/PureAbility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export type AbilityClass<T extends AnyAbility> = new (
options?: AbilityOptionsOf<T>
) => T;

export type CreteAbility<T extends AnyAbility> = (
rules?: RawRuleOf<T>,
export type CreateAbility<T extends AnyAbility> = (
rules?: RawRuleOf<T>[],
options?: AbilityOptionsOf<T>
) => T;

Expand Down

0 comments on commit ef48c3a

Please sign in to comment.