@master4n/decorators
Advanced tools
+1
-1
| { | ||
| "name": "@master4n/decorators", | ||
| "version": "1.1.2", | ||
| "version": "1.1.3", | ||
| "description": "Common Decorators Library", | ||
@@ -5,0 +5,0 @@ "main": "./commonjs/index.cjs", |
+13
-14
| # @master4n/decorators | ||
|  | ||
|  | ||
|  | ||
@@ -21,3 +20,3 @@  | ||
| ```js | ||
| const { Value } = require('@master4n/decorators') | ||
| const { Value } = require("@master4n/decorators"); | ||
| ``` | ||
@@ -28,3 +27,3 @@ | ||
| ```ts | ||
| import { Value } from '@master4n/decorators' | ||
| import { Value } from "@master4n/decorators"; | ||
| ``` | ||
@@ -34,4 +33,4 @@ | ||
| class Token { | ||
| @Value('fix.token') | ||
| fixToken: string | ||
| @Value("fix.token") | ||
| fixToken: string; | ||
| } | ||
@@ -45,4 +44,4 @@ ``` | ||
| ```json | ||
| "experimentalDecorators": true, | ||
| "emitDecoratorMetadata": true, | ||
| "experimentalDecorators": true, | ||
| "emitDecoratorMetadata": true, | ||
| ``` | ||
@@ -52,9 +51,9 @@ | ||
| |Decorator|Type|Description| | ||
| |---|---|---| | ||
| |Value|Class Property|Read the value from yaml file and assigned it to class property| | ||
| |GenerateID|Class Property|Assigne unique UUID value to class property| | ||
| |NotNull|Method Parameter|Check if parameter is not null and undefined| | ||
| |Counter|Static Property Parameter|Create static counter| | ||
| |Log|Method Parameter|Log in and out of method| | ||
| | Decorator | Type | Description | | ||
| | ---------- | ------------------------- | --------------------------------------------------------------- | | ||
| | Value | Class Property | Read the value from yaml file and assigned it to class property | | ||
| | GenerateID | Class Property | Assigne unique UUID value to class property | | ||
| | NotNull | Method Parameter | Check if parameter is not null and undefined | | ||
| | Counter | Static Property Parameter | Create static counter | | ||
| | Log | Method Parameter | Log in and out of method | | ||
@@ -61,0 +60,0 @@ ## Credits |
18542
1.2%58
-1.69%