{"action":"created","issue":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/153","labels_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/153/comments","events_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/153/events","html_url":"https://github.com/ivogabe/gulp-typescript/issues/153","id":88384280,"number":153,"title":"Errors in angulars d.ts files ","user":{"login":"tbekaert","id":11920484,"avatar_url":"https://avatars.githubusercontent.com/u/11920484?v=3","gravatar_id":"","url":"https://api.github.com/users/tbekaert","html_url":"https://github.com/tbekaert","followers_url":"https://api.github.com/users/tbekaert/followers","following_url":"https://api.github.com/users/tbekaert/following{/other_user}","gists_url":"https://api.github.com/users/tbekaert/gists{/gist_id}","starred_url":"https://api.github.com/users/tbekaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbekaert/subscriptions","organizations_url":"https://api.github.com/users/tbekaert/orgs","repos_url":"https://api.github.com/users/tbekaert/repos","events_url":"https://api.github.com/users/tbekaert/events{/privacy}","received_events_url":"https://api.github.com/users/tbekaert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T10:30:37Z","updated_at":"2015-06-15T13:43:30Z","closed_at":"2015-06-15T13:43:30Z","body":"I have a small project written with Angular.js 1.x and Typescript and I'm trying to use your plugin but I keep getting errors from the angular declaration files, which I get from the [DefinitelyTyped repo](https://github.com/borisyankov/DefinitelyTyped/tree/tsc-1.5.0-alpha)\r\n\r\nHere is my app structure:\r\n```\r\napp/\r\n   - **/*.js // my project typescript files\r\nassets/\r\n   types/\r\n      - **/*/d.ts // my declaration files in differents folders\r\n   js/\r\n      - out.js // my compiled file\r\ngulpfile.js\r\n```\r\n\r\nMy package.json devDependecies:\r\n```\r\n\"gulp\": \"^3.8.11\",\r\n\"gulp-plumber\": \"^1.0.0\",\r\n\"gulp-typescript\": \"^2.7.6\",\r\n\"typescript\": \"1.5.0-beta\"\r\n```\r\n\r\nAnd finaly, my gulp task:\r\n```\r\nvar onError = function (err) {\r\n  gutil.beep();\r\n  console.log(err);\r\n  this.emit('end');\r\n};\r\n\r\nvar tsProject = typescript.createProject({\r\n  target: 'ES5',\r\n  out: 'assets/js/out.js',\r\n  noImplicitAny: true,\r\n  declarationFiles: false,\r\n  noExternalResolve: true,\r\n  noEmitOnError: false,\r\n  isolatedCompilation: true,\r\n  typescript: require('typescript')\r\n});\r\n\r\ngulp.task('ts', function () {\r\n  var tsResult = gulp.src(['app/**/*.ts', 'assets/types/**/*.d.ts'], {base: '.'})\r\n    .pipe(plumber({ errorHandler: onError }))\r\n    .pipe(typescript(tsProject));\r\n\r\n  return tsResult.js.pipe(gulp.dest(path.js));\r\n});\r\n```\r\n\r\nWhen compiling, I get lots of errors (around 400) from all d.ts files such as `assets/types/angularjs/legacy/angular-scenario-1.2.d.ts(166,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'angular' must be of type 'IAngularStatic', but here has type 'IAngularStatic'.` (which is a strange error BTW)\r\nAnyway, I get a `TypeScript: emit succeeded (with errors)` message but my out.js files is not generated.\r\n\r\nDid anyone see where I've done something wrong?"},"comment":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/comments/112075349","html_url":"https://github.com/ivogabe/gulp-typescript/issues/153#issuecomment-112075349","issue_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/153","id":112075349,"user":{"login":"tbekaert","id":11920484,"avatar_url":"https://avatars.githubusercontent.com/u/11920484?v=3","gravatar_id":"","url":"https://api.github.com/users/tbekaert","html_url":"https://github.com/tbekaert","followers_url":"https://api.github.com/users/tbekaert/followers","following_url":"https://api.github.com/users/tbekaert/following{/other_user}","gists_url":"https://api.github.com/users/tbekaert/gists{/gist_id}","starred_url":"https://api.github.com/users/tbekaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbekaert/subscriptions","organizations_url":"https://api.github.com/users/tbekaert/orgs","repos_url":"https://api.github.com/users/tbekaert/repos","events_url":"https://api.github.com/users/tbekaert/events{/privacy}","received_events_url":"https://api.github.com/users/tbekaert/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T13:43:30Z","updated_at":"2015-06-15T13:43:30Z","body":"I didn't thought about that!\r\n\r\nI've changed my gulp.src like this:\r\n```\r\ngulp.src([\r\n  path.ts.app + '**/*.ts',\r\n  path.ts.types + 'angularjs/angular.d.ts',\r\n  path.ts.types + 'angular-ui-router/angular-ui-router.d.ts',\r\n  path.ts.types + 'angular-translate/angular-translate.d.ts',\r\n  path.ts.types + 'angular-material/angular-material.d.ts',\r\n  path.ts.types + 'jquery/jquery.d.ts'\r\n], {base: '.'})\r\n```\r\nAnd there is no error left !\r\n\r\nThanks for your time"}}