@akanjs/signal 0.0.4 → 0.0.6
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/package.json +1 -1
- package/src/signalDecorators.js +3 -6
package/package.json
CHANGED
package/src/signalDecorators.js
CHANGED
|
@@ -510,12 +510,9 @@ const copySignal = (sigRef) => {
|
|
|
510
510
|
for (const endpointMeta of [...gqlMetaMap.values(), ...resolveFieldMetaMap.values()]) {
|
|
511
511
|
const argMetas = getArgMetasOnPrototype(sigRef.prototype, endpointMeta.key);
|
|
512
512
|
setArgMetasOnPrototype(CopiedSignal.prototype, endpointMeta.key, [...argMetas]);
|
|
513
|
-
const paramtypes = Reflect.getMetadata(
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
endpointMeta.key
|
|
517
|
-
);
|
|
518
|
-
Reflect.defineMetadata("design:paramtypes", [...paramtypes], CopiedSignal.prototype, endpointMeta.key);
|
|
513
|
+
const paramtypes = Reflect.getMetadata("design:paramtypes", sigRef.prototype, endpointMeta.key);
|
|
514
|
+
if (paramtypes)
|
|
515
|
+
Reflect.defineMetadata("design:paramtypes", [...paramtypes], CopiedSignal.prototype, endpointMeta.key);
|
|
519
516
|
}
|
|
520
517
|
return CopiedSignal;
|
|
521
518
|
};
|