UNPKG

@eggjs/controller-decorator

Version:

tegg controller decorator

9 lines (8 loc) 934 B
import type { HTTPParamParams, HTTPQueriesParams, HTTPQueryParams } from '@eggjs/tegg-types'; export declare function HTTPBody(): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void; export declare function HTTPHeaders(): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void; export declare function HTTPQuery(param?: HTTPQueryParams): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void; export declare function HTTPQueries(param?: HTTPQueriesParams): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void; export declare function HTTPParam(param?: HTTPParamParams): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void; export declare function Request(): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void; export declare function Cookies(): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void;