update typescript definition