deprecated-decorator
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,3 +0,2 @@ | ||
export declare function createWarner(type: string, name: string, alternative: string, version: string, url: string): Warner; | ||
export declare function deprecated(alternative?: string, version?: string, url?: string): (target: Function | Object, name?: string, descriptor?: PropertyDescriptor) => any; | ||
export default deprecated; |
@@ -39,3 +39,2 @@ /* | ||
} | ||
exports.createWarner = createWarner; | ||
function decorateProperty(type, name, descriptor, alternative, version, url) { | ||
@@ -42,0 +41,0 @@ var warner = (exports.options.getWarner || createWarner)(type, name, alternative, version, url); |
{ | ||
"name": "deprecated-decorator", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A simple decorator for deprecated methods and properties.", | ||
@@ -5,0 +5,0 @@ "main": "bld/index.js", |
@@ -19,2 +19,4 @@ [![NPM Package](https://badge.fury.io/js/deprecated-decorator.svg)](https://www.npmjs.com/package/deprecated-decorator) | ||
```ts | ||
import deprecated from 'deprecated-decorator'; | ||
// alternative, since version, url | ||
@@ -30,2 +32,4 @@ @deprecated('Bar', '0.1.0', 'http://vane.life/') | ||
```ts | ||
import deprecated from 'deprecated-decorator'; | ||
class Foo { | ||
@@ -32,0 +36,0 @@ @deprecated('otherMethod') |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45
11709
128