# Deprecated Decorator swagger schema operation

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

# Overview

function Deprecated(deprecated?: boolean): (...args: any[]) => any;

# Description

Add deprecated metadata on the decorated element.

# Examples


@Deprecated()
class MyCtrl {
  @Deprecated()
  @Get("/")
  method(){
  }
}
1
2
3
4
5
6
7
8

Other topics