# Deprecated Decorator

Module
import { Deprecated } from "@tsed/swagger/src/decorators/deprecated"
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