@akanjs/signal 0.0.7 → 0.0.9
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 +4 -2
package/package.json
CHANGED
package/src/signalDecorators.js
CHANGED
|
@@ -511,8 +511,10 @@ const copySignal = (sigRef) => {
|
|
|
511
511
|
const argMetas = getArgMetasOnPrototype(sigRef.prototype, endpointMeta.key);
|
|
512
512
|
setArgMetasOnPrototype(CopiedSignal.prototype, endpointMeta.key, [...argMetas]);
|
|
513
513
|
const paramtypes = Reflect.getMetadata("design:paramtypes", sigRef.prototype, endpointMeta.key);
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
//! 임시 적용 테스트
|
|
515
|
+
const argParamtypes = argMetas.filter((argMeta) => !!argMeta.returns).map((argMeta) => Object);
|
|
516
|
+
Reflect.defineMetadata("design:paramtypes", paramtypes ?? argParamtypes, CopiedSignal.prototype, endpointMeta.key);
|
|
517
|
+
Reflect.defineMetadata("design:paramtypes", paramtypes ?? argParamtypes, CopiedSignal.prototype, endpointMeta.key);
|
|
516
518
|
}
|
|
517
519
|
return CopiedSignal;
|
|
518
520
|
};
|