fix(typings): test our .d.ts with --noImplicitAny

This matches how DefinitelyTyped tests it, so we are
one step closer to publishing the same file we generate.

See #3195
This commit is contained in:
Alex Eagle
2015-07-23 09:03:39 +01:00
parent 345fa521dd
commit 19d8b221b4
12 changed files with 26 additions and 26 deletions

View File

@ -712,6 +712,7 @@ gulp.task('!pre.test.typings', ['docs/typings'], function() {
gulp.task('test.typings', ['!pre.test.typings'], function() {
return gulp.src(['typing_spec/*.ts', 'dist/docs/typings/angular2/angular2.d.ts'])
.pipe(tsc({target: 'ES5', module: 'commonjs',
noImplicitAny: true,
// Don't use the version of typescript that gulp-typescript depends on, we need 1.5
// see https://github.com/ivogabe/gulp-typescript#typescript-version
typescript: require('typescript')}));