import { createParameterDecorator } from "./create-parameter-decorator.ts";
/** * Decorator that extracts an action argument as the full body of a request */// deno-lint-ignore no-explicit-anyexport function Body(): any;/** * Decorator that extracts an action argument from a field of the body of a request * * @param name Name of the field */// deno-lint-ignore no-explicit-anyexport function Body(name: string): any;export function Body(name?: string) { return createParameterDecorator( async (contextAccessor) => await contextAccessor.getBody(name), name ?? "body", );}