fix boolean operator & -> && for typescript