fix build error at typescript
fix style