fix build error at typescript