From d48ba1744a379b4e638f6587b9cf055a7449d02b Mon Sep 17 00:00:00 2001 From: Aditya Sharma Date: Fri, 10 Jun 2022 17:21:08 +0530 Subject: [PATCH] Removed: unused AppAbility as constant already defined for Subject and Action (#2ebg32y) --- src/authorization/AppAbility.ts | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 src/authorization/AppAbility.ts diff --git a/src/authorization/AppAbility.ts b/src/authorization/AppAbility.ts deleted file mode 100644 index 273ac468..00000000 --- a/src/authorization/AppAbility.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Ability, AbilityClass } from '@casl/ability'; - -type Actions = 'create' | 'read' | 'update'; -type Subjects = 'Job' - -// TODO use AppAbility across app. -export type AppAbility = Ability<[Actions, Subjects]>; -export const AppAbility = Ability as AbilityClass;