core-decorators
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "core-decorators", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc", | ||
@@ -5,0 +5,0 @@ "main": "src/core-decorators.js", |
@@ -62,2 +62,23 @@ # core-decorators.js | ||
// | ||
``` | ||
### @suppressWarnings | ||
```js | ||
import { suppressWarnings } from 'core-decorators'; | ||
class Person { | ||
@deprecated | ||
kickDog() {} | ||
@suppressWarnings | ||
kickDogWithoutWarning() { | ||
this.kickDog(); | ||
} | ||
} | ||
let person = new Person(); | ||
person.kickDogWithoutWarning(); | ||
// no warning is logged | ||
``` |
export { default as override } from './override'; | ||
export { default as deprecated } from './deprecated'; | ||
export { default as suppressWarnings } from './suppress-warnings'; |
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
12903
8
262
83