UNPKG

@nestia/core

Version:

Super-fast validation decorators of NestJS

24 lines (23 loc) 702 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; * ``` * * @author Jeongho Nam - https://github.com/samchon * @returns Parameter decorator */ export declare function PlainBody(): ParameterDecorator;