Toggle navigation
George Opritescu
Blog
Tags
About
Read the Tutorial
Fork on GitHub
typescript instantiate generic type
Developer from somewhere
function
buildObject
<
T
>
(
type
:
{
new
():
T
}
):
T
{
return
new
type
();
}