Deprecated Decorator
A simple decorator for deprecated properties, methods and classes. It can also wrap normal functions via the old-fashioned way.
Transpilers supported:
- TypeScript with
experimentalDecorators
option enabled. - Babel with transform-decorators-legacy for version 6.x.
Install
npm install deprecated-decorator --save
API References
declare ; declare ;declare ; declare ;declare ;declare ;declare ;declare ; ;
Usage
Decorating a class will enable warning on constructor and static methods (including static getters and setters):
; // alternative, since version, url
Or you can decorate methods respectively:
;
For functions:
; ;
License
MIT License.