typescript create new variable from interface