UNPKG

@ebonydevcopy/framework

Version:

A module-based NodeJS chatbot framework.

32 lines 852 B
/** * ebony-framework * * @module routers/ContextRouter * @author Christos Panagiotakopoulos <chrispanag@gmail.com> * @copyright Copyright(c) 2020 Christos Panagiotakopoulos * @license MIT * */ import BasicRouter from './BasicRouter'; /** * A ContextRouter * @extends BasicRouter */ export default class ContextRouter extends BasicRouter { private field; /** * Create a ContextRouter * @param options - The options of this ContextRouter */ constructor({ field }: { field: string; }); /** * * @param user - The User Object * @param params - Various parameters passed to the action * @returns The result of the action if the route is found. Else it returns false */ getContextRoute<U>(user: U, ...params: any[]): any | false; } //# sourceMappingURL=ContextRouter.d.ts.map