UNPKG

@methodus/server

Version:
32 lines (31 loc) 996 B
import { MethodResult, MethodError } from './response'; export declare class Verbs { static Get: string; static Post: string; static Put: string; static Patch: string; static Head: string; static Delete: string; } export declare class RestResponse { constructor(args: any, methodResult: MethodResult | MethodError | any, headers: any); } /** this function parses values from the request object into the function args * @param {any} args - the arguments sent to the original function. * @param {[string]} paramsMap - express route string. * */ export declare class RestParser { args: any; paramsMap: any; functionArgs: any; deserialize(item: any): any; parse(): ParserResponse; constructor(args: any, paramsMap: any, functionArgs: any); } export declare class ParserResponse { constructor(args: any, isRest: boolean, securityContext: any); args: any; isRest: boolean; securityContext: any; }