Skip to content

Deprecated

@tsed/schema

Usage ​

typescript
import { Deprecated } from "@tsed/schema";

See /packages/specs/schema/src/decorators/operations/deprecated.ts.

Overview ​

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

Description ​

Add deprecated metadata on the decorated element.

Examples ​

typescript

@Deprecated()
class MyCtrl {
  @Deprecated()
  @Get("/")
  method(){
  }
}

Released under the MIT License.