typescript create new instance of interface