@twilio/deprecation-decorator
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

Deprecation Decorator

Annotation for deprecated class methods, logs warning with information about method usage

Usage

import { deprecated } from "@twilio/deprecation-decorator";

class SomeClass {
  @deprecated("oldMethod", "newMethod", "http://docs.link")
  oldMethod() {
    // some deprecated method 
  }

  newMethod() {
    // method to use instead
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @twilio/deprecation-decorator

Weekly Downloads

46,754

Version

0.2.5

License

ISC

Unpacked Size

79.5 kB

Total Files

14

Last publish

Collaborators

  • twilio-messaging