Skip to content

Commit f517570

Browse files
Raymond Fengraymondfeng
authored andcommitted
feat(context): Add decorator factories
The feature implements common behavior for decorator functions for classes, methods, parameters, and properties. It takes inheritance into consideration and aggregate metadata for properties, methods, and parameters into one object by type per class. It also allows control for decorator inheritance by setting the `allowInheritance` flag or overriding `inherit()`.
1 parent 06dd642 commit f517570

File tree

5 files changed

+1128
-35
lines changed

5 files changed

+1128
-35
lines changed

packages/context/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@
2222
"author": "IBM",
2323
"license": "MIT",
2424
"dependencies": {
25+
"debug": "^3.1.0",
26+
"lodash": "^4.17.4",
2527
"reflect-metadata": "^0.1.10"
2628
},
2729
"devDependencies": {
2830
"@loopback/build": "^4.0.0-alpha.7",
2931
"@loopback/testlab": "^4.0.0-alpha.16",
3032
"@types/bluebird": "^3.5.18",
33+
"@types/debug": "0.0.30",
34+
"@types/lodash": "^4.14.87",
3135
"bluebird": "^3.5.0"
3236
},
3337
"keywords": [

0 commit comments

Comments
 (0)