UNPKG

typenexus

Version:

TypeNexus is a good tool for API encapsulation and management. It provides a clean and lightweight way to package TypeORM functionality, helping you build applications faster while reducing template code redundancy and type conversion work.

33 lines (27 loc) 737 B
import { Action } from '../../Action.js'; import { ActionType } from '../types/ActionType.js'; /** * Action metadata used to storage information about registered action. */ export interface ActionMetadataArgs { /** * Route to be registered for the action. */ route: string | RegExp; /** * Class on which's method this action is attached. */ target: Function; /** * Object's method that will be executed on this action. */ method: string; /** * Action type represents http method used for the registered route. Can be one of the value defined in ActionTypes class. */ type: ActionType; /** * Params to be appended to the method call. */ appendParams?: (action: Action) => any[]; }