UNPKG

plumier

Version:

Delightful Node.js Rest Framework

17 lines (16 loc) 513 B
declare module "@plumier/core" { namespace bind { /** * Bind raw request body into parameter * example: * * method(@bind.rawBody() data:any){} * * **NOTE**: To use this functionality, the `includeUnparsed` need to be enabled on the WebApiFacility * * new WebApiFacility({ bodyParser: { includeUnparsed:true } }) */ function rawBody(): (target: any, name: string, index: number) => void; } } export {};