This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
requestor/lib/KnexCrudOptions.ts
Timo Hocker 374940757a fixes
2020-04-17 08:31:14 +02:00

26 lines
757 B
TypeScript

import { Request, Response } from 'express';
type Authentication = {
(req: Request, res: Response, next: Function);
(req: Request, res: Response): Promise<boolean>;
}
type Authorization = {
(req: Request, res: Response, next: Function);
(req: Request, res: Response): Promise<boolean>;
}
export class KnexCrudOptions {
public create_authentication?: Authentication;
public read_authentication?: Authentication;
public update_authentication?: Authentication;
public delete_authentication?: Authentication;
public create_authorization?: Authorization;
public read_authorization?: Authorization;
public update_authorization?: Authorization;
public delete_authorization?: Authorization;
public optional_columns?: Array<string>;
}