@loopback/metadata
Advanced tools
Comparing version 3.3.0 to 3.3.1
{ | ||
"name": "@loopback/metadata", | ||
"description": "Utilities to help developers implement TypeScript decorators, define/merge metadata, and inspect metadata", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"keywords": [ | ||
@@ -48,10 +48,10 @@ "LoopBack", | ||
"devDependencies": { | ||
"@loopback/build": "^6.4.0", | ||
"@loopback/eslint-config": "^10.2.0", | ||
"@loopback/testlab": "^3.4.0", | ||
"@loopback/build": "^6.4.1", | ||
"@loopback/eslint-config": "^10.2.1", | ||
"@loopback/testlab": "^3.4.1", | ||
"@types/debug": "^4.1.5", | ||
"@types/lodash": "^4.14.168", | ||
"@types/node": "^10.17.59" | ||
"@types/lodash": "^4.14.170", | ||
"@types/node": "^10.17.60" | ||
}, | ||
"gitHead": "2ca802912d8c7750d0256f3c3d493c4525415201" | ||
"gitHead": "2a3b684ec76fa299d80b099abbf101358538cb75" | ||
} |
@@ -498,20 +498,23 @@ # @loopback/metadata | ||
const allParamsForMyMethod = MetadataInspector.getAllParameterMetaData<MyParameterMetadata>( | ||
'my-parameter-decorator-key', | ||
MyController.prototype, // Use MyController for static methods, | ||
'myMethod', | ||
); | ||
const allParamsForMyMethod = | ||
MetadataInspector.getAllParameterMetaData<MyParameterMetadata>( | ||
'my-parameter-decorator-key', | ||
MyController.prototype, // Use MyController for static methods, | ||
'myMethod', | ||
); | ||
const firstParamForMyMethod = MetadataInspector.getMyParameterMetaData<MyParameterMetadata>( | ||
'my-parameter-decorator-key', | ||
MyController.prototype, // Use MyController for static methods | ||
'myMethod', | ||
0, // parameter index | ||
); | ||
const firstParamForMyMethod = | ||
MetadataInspector.getMyParameterMetaData<MyParameterMetadata>( | ||
'my-parameter-decorator-key', | ||
MyController.prototype, // Use MyController for static methods | ||
'myMethod', | ||
0, // parameter index | ||
); | ||
const allParamsForConstructor = MetadataInspector.getAllParameterMetaData<MyParameterMetadata>( | ||
'my-parameter-decorator-key', | ||
MyController, | ||
'', | ||
); | ||
const allParamsForConstructor = | ||
MetadataInspector.getAllParameterMetaData<MyParameterMetadata>( | ||
'my-parameter-decorator-key', | ||
MyController, | ||
'', | ||
); | ||
``` | ||
@@ -518,0 +521,0 @@ |
@@ -65,3 +65,3 @@ // Copyright IBM Corp. 2017,2020. All Rights Reserved. | ||
M extends T | MetadataMap<T> | MetadataMap<T[]>, // Type of the metadata | ||
D extends DecoratorType // Type of the decorator | ||
D extends DecoratorType, // Type of the decorator | ||
> { | ||
@@ -347,3 +347,3 @@ protected decoratorName: string; | ||
MT extends S | MetadataMap<S> | MetadataMap<S[]>, | ||
DT extends DecoratorType | ||
DT extends DecoratorType, | ||
>(key: MetadataKey<S, DT>, spec: S, options?: DecoratorOptions): DT { | ||
@@ -350,0 +350,0 @@ const inst = new this<S, MT, DT>(key.toString(), spec, options); |
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
584
142894
23