# Deprecated Decorator swagger schema operation

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

# Overview

function Deprecated(): Function;

# Description

Add deprecated metadata on the decorated element.

# Examples

# On method

class Model {
   @Deprecated()
   id: string;
}
1
2
3
4