@avonjs/avonjs
Version:
A fluent Node.js API generator.
18 lines (17 loc) • 701 B
TypeScript
import type { AbstractMixable, SeeCallback } from '../Contracts';
import type AvonRequest from '../Http/Requests/AvonRequest';
declare const _default: <T extends AbstractMixable = AbstractMixable>(Parent: T) => (abstract new (...args: import("../Contracts").Args) => {
/**
* The callback used to authorize viewing the filter or action.
*/
seeCallback: SeeCallback;
/**
* Determine if the filter or action should be available for the given request.
*/
authorizedToSee(request: AvonRequest): boolean;
/**
* Set the callback to be run to authorize viewing the filter or action.
*/
canSee(callback: SeeCallback): any;
}) & T;
export default _default;