UNPKG

@methodus/platform-rest

Version:

REST plugin for methodus

34 lines (33 loc) 689 B
export declare type Dictionary<T = any> = { [key: string]: T; }; export declare class Verbs { static Get: string; static Post: string; static Put: string; static Patch: string; static Head: string; static Delete: string; } export interface RequestParams { type?: string; from: string; name?: string; value?: any; index: number; schema?: any; } export declare type ParamMapItem = { from: string; name?: string; index: number; }; export interface MethodusObject { verb: string; route: string; resolver: string | Function; _auth: { type: number; options?: Dictionary<string> | Function; }; }