@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/signal",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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
- if (paramtypes)
515
- Reflect.defineMetadata("design:paramtypes", [...paramtypes], CopiedSignal.prototype, endpointMeta.key);
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
  };