Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "deborator", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "a TypeScript decorator, to add console.log() to all methods and properties of a class.", | ||
@@ -5,0 +5,0 @@ "main": "deborator.ts", |
@@ -32,9 +32,15 @@ # deborator readme | ||
class MyCalculator { | ||
constructor(private value: number) {} | ||
add(value: number) { | ||
// ... | ||
this.value += value; | ||
} | ||
} | ||
// using your class: | ||
const calc = new MyCalculator(1); | ||
calc.add(5); | ||
``` | ||
Now if you hit F12, you will see console log entries for your class: | ||
Now if you hit F12, you will see console log entries for your class, as it is being used: | ||
@@ -41,0 +47,0 @@ ``` |
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
7810
115