Fixed api's typescript definition

1. fixed api.d.ts
2. fixed sample
3. updated expressjs