UNPKG

@knovator/masters-node

Version:

NodeJS backend for @knovator/masters

12 lines (11 loc) 566 B
import Master, { MasterSchema } from './models/Master'; interface MastersProps { authentication(_req: any, _res: any, next: () => any): void; logger: any; catchAsync(fn: any): (req: any, res: any, next: any) => void; preDelete: (_record: any) => Promise<{}>; postUpdate: (_record: any) => Promise<{}>; languages: LanguageType[]; } export declare function masters({ authentication, logger, catchAsync, preDelete, postUpdate, languages, }?: Partial<MastersProps>): import("../types/Router").IRouter; export { Master, MasterSchema };