Update TypeScript

This commit is contained in:
Zaid Abdulla committed 2021-09-16 00:17:21 -07:00
1 parent f4692faed6
commit 0861b2db40
9 files changed
+38 -38

No files matched your search

+4 -4
View File
@@ -21,13 +21,13 @@ import { PermissionSet, Expression } from "../types";
import { evaluate, or } from "./expression";
export default class Authorizer {
private permissionSets: PermissionSet[];
private validatorCache: WeakMap<
private declare permissionSets: PermissionSet[];
private declare validatorCache: WeakMap<
any,
(mutationType, mutation, any) => boolean
>;
private hasAccessCache: Map<string, boolean>;
private getFilterCache: Map<string, Expression>;
private declare hasAccessCache: Map<string, boolean>;
private declare getFilterCache: Map<string, Expression>;
public constructor(permissionSets: PermissionSet[]) {
this.permissionSets = permissionSets;