UNPKG

840 BTypeScriptView Raw
1import 'reflect-metadata';
2export declare const INCEPTUM_WEB_METADATA_KEY = "inceptum-web";
3export interface InceptumWebRouteMetadata {
4 verb?: string;
5 path: string;
6 methodName: string;
7}
8export declare class InceptumWebMetadata {
9 routes: InceptumWebRouteMetadata[];
10}
11export declare function hasWebDecoratorMetadata(target: any): boolean;
12export declare function getWebDecoratorMetadata(target: any): InceptumWebMetadata;
13export declare namespace WebDecorator {
14 function Get(path: string): (target: any, key: string) => void;
15 function Post(path: string): (target: any, key: string) => void;
16 function Put(path: string): (target: any, key: string) => void;
17 function Delete(path: string): (target: any, key: string) => void;
18 function Route(verb: string, path: string): (target: any, key: string) => void;
19}