@churchapps/apihelper
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
15 lines • 899 B
TypeScript
import { BaseHttpController } from "inversify-express-utils";
import express from "express";
import { LoggingHelper } from "../helpers/LoggingHelper";
import { AuthenticatedUser } from "../auth";
export declare class CustomBaseController extends BaseHttpController {
logger: LoggingHelper;
constructor();
error(errors: string[]): import("inversify-express-utils/lib/cjs/results").JsonResult;
denyAccess(errors: string[]): import("inversify-express-utils/lib/cjs/results").JsonResult;
authUser(): AuthenticatedUser;
include(req: express.Request, item: string): boolean;
actionWrapper(_req: express.Request, _res: express.Response, fetchFunction: (_au: AuthenticatedUser) => unknown): Promise<unknown>;
actionWrapperAnon(_req: express.Request, _res: express.Response, fetchFunction: () => unknown): Promise<unknown>;
}
//# sourceMappingURL=CustomBaseController.d.ts.map