Skip to content

Commit 120429c

Browse files
authored
refactor: makes public constructor of ForbiddenError (#952)
1 parent ae14a80 commit 120429c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/casl-ability/src/ForbiddenError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ForbiddenError<T extends AnyAbility> extends NativeError {
3030
return new this<U>(ability);
3131
}
3232

33-
private constructor(ability: T) {
33+
constructor(ability: T) {
3434
super('');
3535
this.ability = ability;
3636

0 commit comments

Comments
 (0)