UNPKG

sipp

Version:

An Opinionated, High-Productivity MVC Web Framework in TypeScript

19 lines (18 loc) 1.02 kB
import { PATH_METADATA, METHOD_METADATA, RequestMethod, PATH_OPTION_METADATA } from '../constants'; interface PathOptions { name?: string; } export interface RequestMappingMetadata { [PATH_METADATA]?: string | string[]; [PATH_OPTION_METADATA]?: PathOptions; [METHOD_METADATA]?: RequestMethod; } export declare const RequestMapping: (metadata?: RequestMappingMetadata) => MethodDecorator; export declare const Delete: (path?: string, options?: PathOptions) => MethodDecorator; export declare const Get: (path?: string, options?: PathOptions) => MethodDecorator; export declare const Head: (path?: string, options?: PathOptions) => MethodDecorator; export declare const Options: (path?: string, options?: PathOptions) => MethodDecorator; export declare const Patch: (path?: string, options?: PathOptions) => MethodDecorator; export declare const Post: (path?: string, options?: PathOptions) => MethodDecorator; export declare const Put: (path?: string, options?: PathOptions) => MethodDecorator; export {};