UNPKG

@nestia/core

Version:

Super-fast validation decorators of NestJS

23 lines (22 loc) 698 B
/** * Plain body decorator. * * `PlainBody` is a decorator function getting full body text from the HTTP request. * * If you adjust the regular {@link Body} decorator function to the body parameter, * you can't get the full body text because the {@link Body} tries to convert the * body text to JSON object. Therefore, `@nestia/core` provides this `PlainBody` * decorator function to get the full body text. * * ```typescript * \@TypedRoute.Post("memo") * public store * ( * \@PlainBody() body: string * ): void; * ``` * * @return Parameter decorator * @author Jeongho Nam - https://github.com/samchon */ export declare function PlainBody(): ParameterDecorator;