# Produces Decorator

Module
import { Produces } from "@tsed/swagger/src/decorators/produces"
Source/packages/swagger/src/decorators/produces.ts

# Overview

function Produces(...produces: string[]): Function;

# Description

Add produces metadata on the decorated element.

# Examples

# On method

class Model {
   @Produces("text/html")
   id: string;
}
1
2
3
4