@goodie-ts/decorators 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,6 +24,10 @@ Provides the decorators you use to annotate your classes. These attach metadata
|
|
|
24
24
|
| `@Provides()` | method | Marks a method in a `@Module` as a bean factory |
|
|
25
25
|
| `@Inject(qualifier?)` | accessor field | Field injection |
|
|
26
26
|
| `@Optional()` | accessor field | Marks a field as optional (resolves to `undefined` if missing) |
|
|
27
|
+
| `@Value(key, { default? })` | accessor field | Injects a config value by key |
|
|
28
|
+
| `@PostConstruct()` | method | Called after bean construction and field injection |
|
|
29
|
+
| `@PreDestroy()` | method | Called during `ApplicationContext.close()` |
|
|
30
|
+
| `@PostProcessor()` | class | Marks bean as a `BeanPostProcessor` |
|
|
27
31
|
|
|
28
32
|
## Usage
|
|
29
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodie-ts/decorators",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Stage 3 decorators for goodie-ts compile-time dependency injection",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@goodie-ts/core": "0.
|
|
24
|
+
"@goodie-ts/core": "0.4.0"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|