Skip to main content

Deprecate

Callable

  • Deprecate(message?: string): (target: Function | Object, property?: string | symbol, descriptor?: unknown) => void

  • A decorator that marks a class declaration, class method, class property, or method parameter as deprecated by logging a deprecation message to the console.