@boost/decorators
Advanced tools
Comparing version 4.0.0-alpha.1 to 4.0.0
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
export declare function Deprecate(message?: string): (target: Function | Object, property?: string | symbol | undefined, descriptor?: unknown) => void; | ||
export declare function Deprecate(message?: string): (target: Function | Object, property?: string | symbol, descriptor?: unknown) => void; | ||
//# sourceMappingURL=Deprecate.d.ts.map |
{ | ||
"name": "@boost/decorators", | ||
"version": "4.0.0-alpha.1", | ||
"version": "4.0.0", | ||
"type": "commonjs", | ||
@@ -64,6 +64,7 @@ "release": "1651512178029", | ||
"require": "./cjs/index.cjs" | ||
} | ||
}, | ||
"default": "./lib/index.js" | ||
} | ||
}, | ||
"gitHead": "0d0595fe3d95951cc0d3936b7d811aed26306d20" | ||
"gitHead": "07f3182e14af6b7637b23f69fbe3c735835312a9" | ||
} |
# Decorators - Boost | ||
[![Build Status](https://github.com/milesj/boost/workflows/Build/badge.svg)](https://github.com/milesj/boost/actions?query=branch%3Amaster) | ||
[![npm version](https://badge.fury.io/js/%40boost%2Fdecorators.svg)](https://www.npmjs.com/package/@boost/decorators) | ||
[![npm deps](https://david-dm.org/milesj/boost.svg?path=packages/decorators)](https://www.npmjs.com/package/@boost/decorators) | ||
![build status](https://img.shields.io/github/workflow/status/milesj/boost/Build) | ||
![npm version](https://img.shields.io/npm/v/@boost/decorators) | ||
@@ -13,11 +12,11 @@ Experimental decorators for common patterns. | ||
class Example { | ||
@Bind() | ||
referencedMethod() { | ||
return this; // Class instance | ||
} | ||
@Bind() | ||
referencedMethod() { | ||
return this; // Class instance | ||
} | ||
@Memoize() | ||
someExpensiveOperation() { | ||
// Do something heavy | ||
} | ||
@Memoize() | ||
someExpensiveOperation() { | ||
// Do something heavy | ||
} | ||
} | ||
@@ -24,0 +23,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
72075
42