import { IdentifiedExpressRequest } from "../helper-types"; import { IdentityBill } from "../types"; export interface RightsTree< TIdentity extends IdentityBill = IdentityBill, TRequest extends IdentifiedExpressRequest = IdentifiedExpressRequest > { readonly context?: ((scopePart: string, req: TRequest) => any | Promise); readonly right?: ((scopePart: string, req: TRequest) => boolean | Promise); readonly children?: { [name: string]: RightsTree }; readonly wildcard?: RightsTree; }