From 4ab1ccc926eb17ecab36362cfb4cbc1dc61a5422 Mon Sep 17 00:00:00 2001 From: Sergii Stotskyi Date: Fri, 26 Jul 2024 15:47:39 +0300 Subject: [PATCH] refactor: makes public constructor of ForbiddenError --- packages/casl-ability/src/ForbiddenError.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/casl-ability/src/ForbiddenError.ts b/packages/casl-ability/src/ForbiddenError.ts index ff455503d..6eeb8eef0 100644 --- a/packages/casl-ability/src/ForbiddenError.ts +++ b/packages/casl-ability/src/ForbiddenError.ts @@ -30,7 +30,7 @@ export class ForbiddenError extends NativeError { return new this(ability); } - private constructor(ability: T) { + constructor(ability: T) { super(''); this.ability = ability;