0

When I use Typescript. I have a problem. How to get Generics in the function。

enter image description here

I want to get T's type. Thanks!

kirno
  • 1
  • 1
  • 1
    Possible duplicate of [Is it possible to get the type name of a generic type?](https://stackoverflow.com/questions/41160690/is-it-possible-to-get-the-type-name-of-a-generic-type) – Daniel A. White Apr 14 '18 at 02:28
  • _"I want to get T's type"_ → You can't. It doesn't exist at runtime. – Paleo Apr 14 '18 at 14:34

0 Answers0