Traivs CI failure due to newer version of TS installed
Description
Travis CI reports the following issue:
> @swagger/angular2-typescript-petstore@0.0.1 build /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/typescript-node/npm
> tsc
api/petApi.ts(86,57): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(121,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(141,82): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(177,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(196,106): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(234,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(254,76): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(292,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(312,66): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(347,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(367,60): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(402,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(423,105): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(466,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(487,110): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/petApi.ts(531,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(80,69): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(113,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(131,55): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(160,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(180,70): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(213,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(233,65): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/storeApi.ts(266,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(78,63): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(111,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(130,85): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(163,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(182,84): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(215,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(234,69): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(267,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(286,72): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(319,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(340,86): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(385,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(404,53): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(431,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(451,81): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
api/userApi.ts(490,45): error TS2694: Namespace '"http"' has no exported member 'ClientResponse'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @swagger/angular2-typescript-petstore@0.0.1 build: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @swagger/angular2-typescript-petstore@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
We suspect the issue is due to a newer version of TS installed
openapi-generator version
Latest master
Suggest a fix/enhancement
Tried installing TS v3.0.3 but no luck as the job still fails: https://travis-ci.org/OpenAPITools/openapi-generator/builds/434688785 so need to investigate further.