UNPKG

casbin

Version:

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS

16 lines (15 loc) 476 B
import { FileAdapter } from './fileAdapter'; /** * BatchFileAdapter is the file adapter for Casbin. * It can add policies and remove policies. * @deprecated The class should not be used, you should use FileAdapter. */ export class BatchFileAdapter extends FileAdapter { /** * FileAdapter is the constructor for FileAdapter. * @param {string} filePath filePath the path of the policy file. */ constructor(filePath) { super(filePath); } }