Skip to content

Commit

Permalink
refactor: makes public constructor of ForbiddenError
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Jul 26, 2024
1 parent 14bf935 commit 47d4ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/casl-ability/src/ForbiddenError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ForbiddenError<T extends AnyAbility> extends NativeError {
return new this<U>(ability);
}

private constructor(ability: T) {
constructor(ability: T) {
super('');
this.ability = ability;

Expand Down

0 comments on commit 47d4ef2

Please sign in to comment.