Deprecated
@tsed/schema
Usage
typescript
import { Deprecated } from "@tsed/schema";
See /packages/specs/schema/src/types/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(){
}
}