UNPKG

633 BTypeScriptView Raw
1import { HandlerOptions } from '../decorator-options/HandlerOptions';
2import { ActionType } from '../metadata/types/ActionType';
3/**
4 * Registers an action to be executed when request with specified method comes on a given route.
5 * Must be applied on a controller action.
6 */
7export declare function Method(method: ActionType, route?: RegExp, options?: HandlerOptions): Function;
8/**
9 * Registers an action to be executed when request with specified method comes on a given route.
10 * Must be applied on a controller action.
11 */
12export declare function Method(method: ActionType, route?: string, options?: HandlerOptions): Function;