fix build error at TypeScript