When function return type is Promise<number>
, how can i get it with reflection?
If i just do
Reflect.getMetadata("design:returntype", target, key)
it's return just Promise
, so there is a way to know that is Promise of number?
name:"Promise"
prototype:Promise {constructor: , then: , catch: , …}
reject:function reject() { … }
resolve:function resolve() { … }