From 33686b47c528bad565982141be3454f535ea15ea Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Wed, 4 May 2016 16:30:29 -0700 Subject: [PATCH] Lots of fixes --- dhtmlxgantt/tsconfig.json | 2 +- dhtmlxscheduler/tsconfig.json | 2 +- es6-shim/tsconfig.json | 2 +- event-stream/event-stream-tests.ts | 2 +- evernote/index.d.ts | 3 - fixed-data-table/tsconfig.json | 4 +- giraffe/tsconfig.json | 2 +- gulp-autoprefixer/gulp-autoprefixer-tests.ts | 2 +- gulp-cheerio/gulp-cheerio-tests.ts | 2 +- gulp-coffeelint/gulp-coffeelint-tests.ts | 2 +- gulp-concat/gulp-concat-tests.ts | 2 +- gulp-csso/gulp-csso-tests.ts | 2 +- gulp-debug/gulp-debug-tests.ts | 2 +- gulp-espower/gulp-espower-tests.ts | 2 +- gulp-filter/gulp-filter-tests.ts | 2 +- gulp-flatten/gulp-flatten-tests.ts | 2 +- gulp-gh-pages/gulp-gh-pages-tests.ts | 2 +- gulp-gzip/gulp-gzip-tests.ts | 2 +- gulp-html-replace/gulp-html-replace-tests.ts | 2 +- gulp-htmlmin/gulp-htmlmin-tests.ts | 2 +- gulp-if/gulp-if-tests.ts | 2 +- gulp-inject/gulp-inject-tests.ts | 2 +- gulp-install/gulp-install-tests.ts | 2 +- gulp-istanbul/gulp-istanbul-tests.ts | 2 +- .../gulp-jasmine-browser-tests.ts | 2 +- gulp-json-editor/gulp-json-editor-tests.ts | 2 +- gulp-jspm/gulp-jspm-tests.ts | 2 +- gulp-less/gulp-less-tests.ts | 2 +- gulp-minify-css/gulp-minify-css-tests.ts | 2 +- gulp-minify-html/gulp-minify-html-tests.ts | 2 +- gulp-mocha/gulp-mocha-tests.ts | 2 +- gulp-ng-annotate/gulp-ng-annotate-tests.ts | 2 +- gulp-nodemon/gulp-nodemon-tests.ts | 2 +- gulp-protractor/gulp-protractor-tests.ts | 2 +- gulp-rename/gulp-rename-tests.ts | 2 +- gulp-replace/gulp-replace-tests.ts | 2 +- gulp-rev-replace/gulp-rev-replace-tests.ts | 2 +- gulp-rev/gulp-rev-tests.ts | 2 +- gulp-ruby-sass/gulp-ruby-sass-tests.ts | 2 +- gulp-sass/gulp-sass-tests.ts | 2 +- gulp-shell/gulp-shell-tests.ts | 2 +- gulp-size/gulp-size-tests.ts | 2 +- gulp-sourcemaps/gulp-sourcemaps-tests.ts | 2 +- gulp-strip-debug/gulp-strip-debug-tests.ts | 2 +- gulp-svg-sprite/gulp-svg-sprite-tests.ts | 2 +- gulp-tsd/gulp-tsd-tests.ts | 2 +- gulp-tslint/gulp-tslint-tests.ts | 3 - gulp-typedoc/gulp-typedoc-tests.ts | 2 +- gulp-typescript/gulp-typescript-tests.ts | 2 +- gulp-uglify/gulp-uglify-tests.ts | 2 +- gulp-useref/gulp-useref-tests.ts | 2 +- gulp-watch/gulp-watch-tests.ts | 3 - gulp/gulp-tests.ts | 3 - handlebars/tsconfig.json | 1 + inversify/tsconfig.json | 3 +- ion.rangeSlider/tsconfig.json | 1 + iscroll/tsconfig.json | 1 + jasmine-ajax/tsconfig.json | 2 +- jasmine/tsconfig.json | 1 + jquery.bbq/tsconfig.json | 2 +- jquery.colorpicker/tsconfig.json | 2 +- jquery.dataTables/tsconfig.json | 2 +- jquery.noty/tsconfig.json | 2 +- jsfl/tsconfig.json | 2 +- karma/karma-tests.ts | 2 +- main-bower-files/main-bower-files-tests.ts | 2 +- material-ui/legacy/tsconfig.json | 1 + material-ui/tsconfig.json | 1 + merge2/merge2-tests.ts | 2 +- moment/index.d.ts | 2 +- node/tsconfig.json | 1 + physijs/physijs.d.ts | 2 +- react/tsconfig.json | 1 + rebass/tsconfig.json | 3 +- redux-devtools/tsconfig.json | 3 +- redux-form/tsconfig.json | 3 +- redux-saga/tsconfig.json | 2 +- ref-union/index.d.ts | 4 -- ref/index.d.ts | 1 + .../{index.d.ts => requirejs-domready.d.ts} | 15 ++-- restful.js/index.d.ts | 2 +- restful.js/restful.js-tests.ts | 70 ++++++++++--------- rethinkdb/tsconfig.json | 2 +- riot-api-nodejs/riot-api-nodejs-tests.ts | 2 - rsmq/rsmq.d.ts | 2 - rsync/rsync-tests.ts | 2 - run-sequence/run-sequence-tests.ts | 3 - .../safari-extension-content-tests.ts | 0 .../safari-extension-content.d.ts | 0 safari-extension-content/tsconfig.json | 9 +++ sammy/tsconfig.json | 2 +- scroller/tsconfig.json | 2 +- select2/tsconfig.json | 2 +- sencha_touch/tsconfig.json | 3 +- .../sequelize-fixtures-tests.ts | 4 +- sequelize/tsconfig.json | 1 + sharepoint/tsconfig.json | 2 +- siesta/tsconfig.json | 2 +- signalr/tsconfig.json | 1 + slickgrid/slick.autotooltips-tests.ts | 4 +- snapsvg/snapsvg-tests-3.ts | 2 +- sockjs-node/sockjs-node-tests.ts | 7 +- sockjs/{sockjs.d.ts => index.d.ts} | 3 + speakeasy/speakeasy-tests.ts | 2 - stack-mapper/stack-mapper-tests.ts | 4 +- swipeview/tsconfig.json | 2 +- temp/index.d.ts | 2 +- temp/temp-tests.ts | 1 - three/tests/canvas/tsconfig.json | 2 +- three/tests/css3d/tsconfig.json | 2 +- three/tests/math/tsconfig.json | 2 +- three/tests/tsconfig.json | 2 +- three/tests/webgl/tsconfig.json | 2 +- three/tsconfig.json | 2 +- thrift/thrift-tests.ts | 3 - tmp/tmp-tests.ts | 3 +- toastr/toastr-tests.ts | 4 +- toastr/toastr.d.ts | 2 + tv4/tsconfig.json | 1 + twix/twix-tests.ts | 2 + .../typescript-deferred-tests.ts | 2 - underscore/tsconfig.json | 2 +- vec3/{vec3.d.ts => index.d.ts} | 5 +- vec3/vec3-tests.ts | 2 - viewporter/tsconfig.json | 2 +- vinyl-buffer/vinyl-buffer-tests.ts | 3 - vinyl-fs/vinyl-fs-tests.ts | 4 -- vinyl-paths/vinyl-paths-tests.ts | 3 - .../vinyl-source-stream-tests.ts | 2 - vinyl/index.d.ts | 5 ++ webcomponents.js/webcomponents.js-tests.ts | 2 +- webix/tsconfig.json | 1 + webspeechapi/webspeechapi-tests.ts | 2 +- winjs/tsconfig.json | 1 + {winrt => winrt-uwp}/winrt-uwp.d.ts | 0 wiredep/wiredep-tests.ts | 3 - wu/wu-tests.ts | 20 +++--- xml-parser/xml-parser-tests.ts | 1 - xsockets/XSockets-tests.ts | 2 +- 139 files changed, 196 insertions(+), 207 deletions(-) rename requirejs-domready/{index.d.ts => requirejs-domready.d.ts} (58%) rename {safari-extension => safari-extension-content}/safari-extension-content-tests.ts (100%) rename {safari-extension => safari-extension-content}/safari-extension-content.d.ts (100%) create mode 100644 safari-extension-content/tsconfig.json rename sockjs/{sockjs.d.ts => index.d.ts} (96%) rename vec3/{vec3.d.ts => index.d.ts} (93%) rename {winrt => winrt-uwp}/winrt-uwp.d.ts (100%) diff --git a/dhtmlxgantt/tsconfig.json b/dhtmlxgantt/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/dhtmlxgantt/tsconfig.json +++ b/dhtmlxgantt/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/dhtmlxscheduler/tsconfig.json b/dhtmlxscheduler/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/dhtmlxscheduler/tsconfig.json +++ b/dhtmlxscheduler/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/es6-shim/tsconfig.json b/es6-shim/tsconfig.json index effc71d799..e8a71bb27d 100644 --- a/es6-shim/tsconfig.json +++ b/es6-shim/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es6", + "target": "es5", "noImplicitAny": true, "strictNullChecks": false, "baseUrl": "../" diff --git a/event-stream/event-stream-tests.ts b/event-stream/event-stream-tests.ts index 02e2873ab7..cdb541b382 100644 --- a/event-stream/event-stream-tests.ts +++ b/event-stream/event-stream-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require("gulp"); import * as es from "event-stream"; diff --git a/evernote/index.d.ts b/evernote/index.d.ts index 8e4dafaeaa..18e0e13e1c 100644 --- a/evernote/index.d.ts +++ b/evernote/index.d.ts @@ -3,9 +3,6 @@ // Definitions by: Zachary Collins // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - - import { Thrift } from "thrift"; declare namespace Evernote { diff --git a/fixed-data-table/tsconfig.json b/fixed-data-table/tsconfig.json index effc71d799..be4d092bcf 100644 --- a/fixed-data-table/tsconfig.json +++ b/fixed-data-table/tsconfig.json @@ -1,9 +1,11 @@ { + "files": ["fixed-data-table.d.ts", "fixed-data-table-tests.tsx"], "compilerOptions": { "module": "commonjs", "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react" } } \ No newline at end of file diff --git a/giraffe/tsconfig.json b/giraffe/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/giraffe/tsconfig.json +++ b/giraffe/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/gulp-autoprefixer/gulp-autoprefixer-tests.ts b/gulp-autoprefixer/gulp-autoprefixer-tests.ts index 1b3ba0d535..1b83ca46bb 100644 --- a/gulp-autoprefixer/gulp-autoprefixer-tests.ts +++ b/gulp-autoprefixer/gulp-autoprefixer-tests.ts @@ -1,5 +1,5 @@ /// -/// + import * as gulp from "gulp"; import * as autoprefixer from "gulp-autoprefixer"; diff --git a/gulp-cheerio/gulp-cheerio-tests.ts b/gulp-cheerio/gulp-cheerio-tests.ts index eee626804e..520ee17535 100644 --- a/gulp-cheerio/gulp-cheerio-tests.ts +++ b/gulp-cheerio/gulp-cheerio-tests.ts @@ -1,5 +1,5 @@ -/// + /// import cheerio = require('gulp-cheerio'); diff --git a/gulp-coffeelint/gulp-coffeelint-tests.ts b/gulp-coffeelint/gulp-coffeelint-tests.ts index d07f829914..5d18b98862 100644 --- a/gulp-coffeelint/gulp-coffeelint-tests.ts +++ b/gulp-coffeelint/gulp-coffeelint-tests.ts @@ -1,5 +1,5 @@ -/// + import coffeelint = require('gulp-coffeelint'); import gulp = require('gulp'); diff --git a/gulp-concat/gulp-concat-tests.ts b/gulp-concat/gulp-concat-tests.ts index 5007a8d164..172aa61451 100644 --- a/gulp-concat/gulp-concat-tests.ts +++ b/gulp-concat/gulp-concat-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require("gulp"); import * as concat from "gulp-concat"; diff --git a/gulp-csso/gulp-csso-tests.ts b/gulp-csso/gulp-csso-tests.ts index 6c72ad7c4d..8595a92ce8 100644 --- a/gulp-csso/gulp-csso-tests.ts +++ b/gulp-csso/gulp-csso-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as csso from 'gulp-csso'; diff --git a/gulp-debug/gulp-debug-tests.ts b/gulp-debug/gulp-debug-tests.ts index 313c7e7aab..d5c8a6d52b 100644 --- a/gulp-debug/gulp-debug-tests.ts +++ b/gulp-debug/gulp-debug-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as debug from 'gulp-debug'; diff --git a/gulp-espower/gulp-espower-tests.ts b/gulp-espower/gulp-espower-tests.ts index 87782e6785..9c04e1d3a0 100644 --- a/gulp-espower/gulp-espower-tests.ts +++ b/gulp-espower/gulp-espower-tests.ts @@ -1,5 +1,5 @@ -/// + import espower = require('gulp-espower'); diff --git a/gulp-filter/gulp-filter-tests.ts b/gulp-filter/gulp-filter-tests.ts index cdc8bf8027..0854c73582 100644 --- a/gulp-filter/gulp-filter-tests.ts +++ b/gulp-filter/gulp-filter-tests.ts @@ -1,5 +1,5 @@ -/// + /// /// diff --git a/gulp-flatten/gulp-flatten-tests.ts b/gulp-flatten/gulp-flatten-tests.ts index 644c44231c..8c89236d61 100644 --- a/gulp-flatten/gulp-flatten-tests.ts +++ b/gulp-flatten/gulp-flatten-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from "gulp"; import * as flatten from "gulp-flatten"; diff --git a/gulp-gh-pages/gulp-gh-pages-tests.ts b/gulp-gh-pages/gulp-gh-pages-tests.ts index 0d12c7329a..1b50869107 100644 --- a/gulp-gh-pages/gulp-gh-pages-tests.ts +++ b/gulp-gh-pages/gulp-gh-pages-tests.ts @@ -1,5 +1,5 @@ /// -/// + import * as gulp from "gulp"; import * as ghPages from "gulp-gh-pages"; diff --git a/gulp-gzip/gulp-gzip-tests.ts b/gulp-gzip/gulp-gzip-tests.ts index f75aec1276..0a4d125d43 100644 --- a/gulp-gzip/gulp-gzip-tests.ts +++ b/gulp-gzip/gulp-gzip-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require('gulp'); import gzip = require('gulp-gzip'); diff --git a/gulp-html-replace/gulp-html-replace-tests.ts b/gulp-html-replace/gulp-html-replace-tests.ts index 583e9d6f76..9c774cf43f 100644 --- a/gulp-html-replace/gulp-html-replace-tests.ts +++ b/gulp-html-replace/gulp-html-replace-tests.ts @@ -1,5 +1,5 @@ -/// + /// import * as gulp from 'gulp'; diff --git a/gulp-htmlmin/gulp-htmlmin-tests.ts b/gulp-htmlmin/gulp-htmlmin-tests.ts index 50ecf1d35e..29c3bcd4fe 100644 --- a/gulp-htmlmin/gulp-htmlmin-tests.ts +++ b/gulp-htmlmin/gulp-htmlmin-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as htmlmin from 'gulp-htmlmin'; diff --git a/gulp-if/gulp-if-tests.ts b/gulp-if/gulp-if-tests.ts index 6edb3bc135..b33fe1c8d6 100644 --- a/gulp-if/gulp-if-tests.ts +++ b/gulp-if/gulp-if-tests.ts @@ -1,5 +1,5 @@ /// -/// + import gulp = require('gulp'); import _if = require('gulp-if'); diff --git a/gulp-inject/gulp-inject-tests.ts b/gulp-inject/gulp-inject-tests.ts index fd6dd2882e..4cba6ccc4a 100644 --- a/gulp-inject/gulp-inject-tests.ts +++ b/gulp-inject/gulp-inject-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from "gulp"; import * as inject from "gulp-inject"; diff --git a/gulp-install/gulp-install-tests.ts b/gulp-install/gulp-install-tests.ts index 9aafff3d13..b822b42706 100644 --- a/gulp-install/gulp-install-tests.ts +++ b/gulp-install/gulp-install-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as install from 'gulp-install'; diff --git a/gulp-istanbul/gulp-istanbul-tests.ts b/gulp-istanbul/gulp-istanbul-tests.ts index aada03de1f..0934d39696 100644 --- a/gulp-istanbul/gulp-istanbul-tests.ts +++ b/gulp-istanbul/gulp-istanbul-tests.ts @@ -1,5 +1,5 @@ /// -/// + import gulp = require("gulp"); import istanbul = require("gulp-istanbul"); diff --git a/gulp-jasmine-browser/gulp-jasmine-browser-tests.ts b/gulp-jasmine-browser/gulp-jasmine-browser-tests.ts index 70b869d77d..db219148d3 100644 --- a/gulp-jasmine-browser/gulp-jasmine-browser-tests.ts +++ b/gulp-jasmine-browser/gulp-jasmine-browser-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require('gulp'); import jasmineBrowser = require('gulp-jasmine-browser'); diff --git a/gulp-json-editor/gulp-json-editor-tests.ts b/gulp-json-editor/gulp-json-editor-tests.ts index 4e90086607..67176063de 100644 --- a/gulp-json-editor/gulp-json-editor-tests.ts +++ b/gulp-json-editor/gulp-json-editor-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as jeditor from 'gulp-json-editor'; diff --git a/gulp-jspm/gulp-jspm-tests.ts b/gulp-jspm/gulp-jspm-tests.ts index 371b37dfa3..5f3e0812f1 100644 --- a/gulp-jspm/gulp-jspm-tests.ts +++ b/gulp-jspm/gulp-jspm-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as gulpJspm from 'gulp-jspm'; diff --git a/gulp-less/gulp-less-tests.ts b/gulp-less/gulp-less-tests.ts index 8dde02d540..bd5335d80e 100644 --- a/gulp-less/gulp-less-tests.ts +++ b/gulp-less/gulp-less-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from "gulp"; import * as less from "gulp-less"; diff --git a/gulp-minify-css/gulp-minify-css-tests.ts b/gulp-minify-css/gulp-minify-css-tests.ts index 01c24555a4..597111d30c 100644 --- a/gulp-minify-css/gulp-minify-css-tests.ts +++ b/gulp-minify-css/gulp-minify-css-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from "gulp"; import * as minifyCSS from "gulp-minify-css"; diff --git a/gulp-minify-html/gulp-minify-html-tests.ts b/gulp-minify-html/gulp-minify-html-tests.ts index 220dada22e..fd27474de2 100644 --- a/gulp-minify-html/gulp-minify-html-tests.ts +++ b/gulp-minify-html/gulp-minify-html-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as minifyHtml from 'gulp-minify-html'; diff --git a/gulp-mocha/gulp-mocha-tests.ts b/gulp-mocha/gulp-mocha-tests.ts index 8d3eda4ea3..dd7f820e87 100644 --- a/gulp-mocha/gulp-mocha-tests.ts +++ b/gulp-mocha/gulp-mocha-tests.ts @@ -1,5 +1,5 @@ /// -/// + import * as gulp from "gulp"; import * as mocha from "gulp-mocha"; diff --git a/gulp-ng-annotate/gulp-ng-annotate-tests.ts b/gulp-ng-annotate/gulp-ng-annotate-tests.ts index af0da1ffff..ea48672fb0 100644 --- a/gulp-ng-annotate/gulp-ng-annotate-tests.ts +++ b/gulp-ng-annotate/gulp-ng-annotate-tests.ts @@ -1,5 +1,5 @@ -/// + import ngAnnotate = require('gulp-ng-annotate'); import gulp = require('gulp'); diff --git a/gulp-nodemon/gulp-nodemon-tests.ts b/gulp-nodemon/gulp-nodemon-tests.ts index 9e32c844da..364536f778 100644 --- a/gulp-nodemon/gulp-nodemon-tests.ts +++ b/gulp-nodemon/gulp-nodemon-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require('gulp'); import path = require('path'); diff --git a/gulp-protractor/gulp-protractor-tests.ts b/gulp-protractor/gulp-protractor-tests.ts index 62194a5863..77d31e2bea 100644 --- a/gulp-protractor/gulp-protractor-tests.ts +++ b/gulp-protractor/gulp-protractor-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require('gulp'); import protractor = require('gulp-protractor'); diff --git a/gulp-rename/gulp-rename-tests.ts b/gulp-rename/gulp-rename-tests.ts index 6b204a36d9..3340feac01 100644 --- a/gulp-rename/gulp-rename-tests.ts +++ b/gulp-rename/gulp-rename-tests.ts @@ -1,5 +1,5 @@ /// -/// + import gulp = require("gulp"); import rename = require("gulp-rename"); diff --git a/gulp-replace/gulp-replace-tests.ts b/gulp-replace/gulp-replace-tests.ts index 8e043d7748..c770a866da 100644 --- a/gulp-replace/gulp-replace-tests.ts +++ b/gulp-replace/gulp-replace-tests.ts @@ -1,5 +1,5 @@ /// -/// + import * as gulp from "gulp"; import * as replace from "gulp-replace"; diff --git a/gulp-rev-replace/gulp-rev-replace-tests.ts b/gulp-rev-replace/gulp-rev-replace-tests.ts index 09b2a136c7..1c3fb07cd8 100644 --- a/gulp-rev-replace/gulp-rev-replace-tests.ts +++ b/gulp-rev-replace/gulp-rev-replace-tests.ts @@ -1,5 +1,5 @@ -/// + /// import * as gulp from 'gulp'; diff --git a/gulp-rev/gulp-rev-tests.ts b/gulp-rev/gulp-rev-tests.ts index 55ee19c2c5..c13b23fc71 100644 --- a/gulp-rev/gulp-rev-tests.ts +++ b/gulp-rev/gulp-rev-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require('gulp'); import rev = require('gulp-rev'); diff --git a/gulp-ruby-sass/gulp-ruby-sass-tests.ts b/gulp-ruby-sass/gulp-ruby-sass-tests.ts index 5237527a45..0585ee0161 100644 --- a/gulp-ruby-sass/gulp-ruby-sass-tests.ts +++ b/gulp-ruby-sass/gulp-ruby-sass-tests.ts @@ -1,5 +1,5 @@ /// -/// + import * as gulp from "gulp"; import * as sass from "gulp-ruby-sass"; diff --git a/gulp-sass/gulp-sass-tests.ts b/gulp-sass/gulp-sass-tests.ts index b1aeef4b4f..5493df65a0 100644 --- a/gulp-sass/gulp-sass-tests.ts +++ b/gulp-sass/gulp-sass-tests.ts @@ -1,5 +1,5 @@ /// -/// + import gulp = require("gulp"); import * as sass from "gulp-sass"; diff --git a/gulp-shell/gulp-shell-tests.ts b/gulp-shell/gulp-shell-tests.ts index bf16e04ddb..3bd6d906fc 100644 --- a/gulp-shell/gulp-shell-tests.ts +++ b/gulp-shell/gulp-shell-tests.ts @@ -1,5 +1,5 @@ -/// + import shell = require('gulp-shell'); import gulp = require('gulp'); diff --git a/gulp-size/gulp-size-tests.ts b/gulp-size/gulp-size-tests.ts index d3611fa99a..9aea965329 100644 --- a/gulp-size/gulp-size-tests.ts +++ b/gulp-size/gulp-size-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as size from 'gulp-size'; diff --git a/gulp-sourcemaps/gulp-sourcemaps-tests.ts b/gulp-sourcemaps/gulp-sourcemaps-tests.ts index bc06bbb8df..0a649159bd 100644 --- a/gulp-sourcemaps/gulp-sourcemaps-tests.ts +++ b/gulp-sourcemaps/gulp-sourcemaps-tests.ts @@ -1,5 +1,5 @@ /// -/// + import gulp = require("gulp"); import sourcemaps = require("gulp-sourcemaps"); diff --git a/gulp-strip-debug/gulp-strip-debug-tests.ts b/gulp-strip-debug/gulp-strip-debug-tests.ts index e5b6f9191a..9a0b04e48a 100644 --- a/gulp-strip-debug/gulp-strip-debug-tests.ts +++ b/gulp-strip-debug/gulp-strip-debug-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from 'gulp'; import * as stripDebug from 'gulp-strip-debug'; diff --git a/gulp-svg-sprite/gulp-svg-sprite-tests.ts b/gulp-svg-sprite/gulp-svg-sprite-tests.ts index 490a8936e8..678adeb570 100644 --- a/gulp-svg-sprite/gulp-svg-sprite-tests.ts +++ b/gulp-svg-sprite/gulp-svg-sprite-tests.ts @@ -1,5 +1,5 @@ -/// + /// import svgSprite = require('gulp-svg-sprite'); diff --git a/gulp-tsd/gulp-tsd-tests.ts b/gulp-tsd/gulp-tsd-tests.ts index ff8a5ea3d6..0b7a1dadea 100644 --- a/gulp-tsd/gulp-tsd-tests.ts +++ b/gulp-tsd/gulp-tsd-tests.ts @@ -1,5 +1,5 @@ -/// + import * as gulp from "gulp"; import * as tsd from "gulp-tsd"; diff --git a/gulp-tslint/gulp-tslint-tests.ts b/gulp-tslint/gulp-tslint-tests.ts index 4770b1b723..75c79954a9 100644 --- a/gulp-tslint/gulp-tslint-tests.ts +++ b/gulp-tslint/gulp-tslint-tests.ts @@ -1,6 +1,3 @@ -/// -/// - import * as gulp from 'gulp'; import * as tslint from 'gulp-tslint'; import vinyl = require('../vinyl'); diff --git a/gulp-typedoc/gulp-typedoc-tests.ts b/gulp-typedoc/gulp-typedoc-tests.ts index 143fd776a3..1bfee5b8eb 100644 --- a/gulp-typedoc/gulp-typedoc-tests.ts +++ b/gulp-typedoc/gulp-typedoc-tests.ts @@ -1,5 +1,5 @@ /// -/// + import gulp = require("gulp"); import typedoc = require("gulp-typedoc"); diff --git a/gulp-typescript/gulp-typescript-tests.ts b/gulp-typescript/gulp-typescript-tests.ts index ab40e478d8..0fa0b13b68 100644 --- a/gulp-typescript/gulp-typescript-tests.ts +++ b/gulp-typescript/gulp-typescript-tests.ts @@ -1,5 +1,5 @@ /// -/// + import gulp = require("gulp"); import typescript = require("gulp-typescript"); diff --git a/gulp-uglify/gulp-uglify-tests.ts b/gulp-uglify/gulp-uglify-tests.ts index 01cfb06f9e..6d61e6671d 100644 --- a/gulp-uglify/gulp-uglify-tests.ts +++ b/gulp-uglify/gulp-uglify-tests.ts @@ -1,5 +1,5 @@ /// -/// + import * as gulp from 'gulp'; import * as uglify from 'gulp-uglify'; diff --git a/gulp-useref/gulp-useref-tests.ts b/gulp-useref/gulp-useref-tests.ts index b6ba29bdfc..1a17c4aa7c 100644 --- a/gulp-useref/gulp-useref-tests.ts +++ b/gulp-useref/gulp-useref-tests.ts @@ -1,5 +1,5 @@ -/// + /// diff --git a/gulp-watch/gulp-watch-tests.ts b/gulp-watch/gulp-watch-tests.ts index 282b0fae49..56a676bc65 100644 --- a/gulp-watch/gulp-watch-tests.ts +++ b/gulp-watch/gulp-watch-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as gulp from 'gulp'; import * as watch from 'gulp-watch'; diff --git a/gulp/gulp-tests.ts b/gulp/gulp-tests.ts index 56edba692f..9660b0658a 100644 --- a/gulp/gulp-tests.ts +++ b/gulp/gulp-tests.ts @@ -1,6 +1,3 @@ - -/// - import gulp = require("gulp"); import browserSync = require("browser-sync"); diff --git a/handlebars/tsconfig.json b/handlebars/tsconfig.json index effc71d799..8fd7668fb7 100644 --- a/handlebars/tsconfig.json +++ b/handlebars/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["handlebars.d.ts", "handlebars-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/inversify/tsconfig.json b/inversify/tsconfig.json index effc71d799..cf91544f8f 100644 --- a/inversify/tsconfig.json +++ b/inversify/tsconfig.json @@ -4,6 +4,7 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "experimentalDecorators": true } } \ No newline at end of file diff --git a/ion.rangeSlider/tsconfig.json b/ion.rangeSlider/tsconfig.json index effc71d799..88fc2393e4 100644 --- a/ion.rangeSlider/tsconfig.json +++ b/ion.rangeSlider/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["ion.rangeSlider.d.ts", "ion.rangeSlider-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/iscroll/tsconfig.json b/iscroll/tsconfig.json index effc71d799..fdb241eeb3 100644 --- a/iscroll/tsconfig.json +++ b/iscroll/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["iscroll.d.ts", "iscroll-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/jasmine-ajax/tsconfig.json b/jasmine-ajax/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jasmine-ajax/tsconfig.json +++ b/jasmine-ajax/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jasmine/tsconfig.json b/jasmine/tsconfig.json index effc71d799..5f57cb9446 100644 --- a/jasmine/tsconfig.json +++ b/jasmine/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["jasmine.d.ts", "jasmine-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/jquery.bbq/tsconfig.json b/jquery.bbq/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.bbq/tsconfig.json +++ b/jquery.bbq/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.colorpicker/tsconfig.json b/jquery.colorpicker/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.colorpicker/tsconfig.json +++ b/jquery.colorpicker/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.dataTables/tsconfig.json b/jquery.dataTables/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.dataTables/tsconfig.json +++ b/jquery.dataTables/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.noty/tsconfig.json b/jquery.noty/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.noty/tsconfig.json +++ b/jquery.noty/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jsfl/tsconfig.json b/jsfl/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jsfl/tsconfig.json +++ b/jsfl/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/karma/karma-tests.ts b/karma/karma-tests.ts index 37ea7eaa18..b96536c97d 100644 --- a/karma/karma-tests.ts +++ b/karma/karma-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require('gulp'); import karma = require('karma'); diff --git a/main-bower-files/main-bower-files-tests.ts b/main-bower-files/main-bower-files-tests.ts index 356b7234b8..0ddd04137d 100644 --- a/main-bower-files/main-bower-files-tests.ts +++ b/main-bower-files/main-bower-files-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require("gulp"); import mainBowerFiles = require("main-bower-files"); diff --git a/material-ui/legacy/tsconfig.json b/material-ui/legacy/tsconfig.json index 19e19d490d..1ecf1c760c 100644 --- a/material-ui/legacy/tsconfig.json +++ b/material-ui/legacy/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["material-ui-0.13.4.d.ts", "material-ui-0.13.4-tests.tsx"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/material-ui/tsconfig.json b/material-ui/tsconfig.json index effc71d799..b564fb3c46 100644 --- a/material-ui/tsconfig.json +++ b/material-ui/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["material-ui.d.ts", "material-ui-tests.tsx"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/merge2/merge2-tests.ts b/merge2/merge2-tests.ts index 81ccfff42a..8f95b82bda 100644 --- a/merge2/merge2-tests.ts +++ b/merge2/merge2-tests.ts @@ -1,5 +1,5 @@ -/// + import gulp = require('gulp'); import * as merge2 from "merge2"; diff --git a/moment/index.d.ts b/moment/index.d.ts index 6680bf6927..8cffb15c4f 100644 --- a/moment/index.d.ts +++ b/moment/index.d.ts @@ -178,7 +178,7 @@ declare namespace moment { * @param unitOfTime the unit of time you want to subtract (eg "years" / "hours" etc) * @param amount the amount you want to subtract */ - subtract(amount: string|string, unitOfTime: string): Moment; + subtract(amount: number|string, unitOfTime: string): Moment; /** * Mutates the original moment by subtracting time. * diff --git a/node/tsconfig.json b/node/tsconfig.json index effc71d799..0e69bb5ac1 100644 --- a/node/tsconfig.json +++ b/node/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["node.d.ts", "node-tests.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/physijs/physijs.d.ts b/physijs/physijs.d.ts index fad8764ad5..bd2555bc35 100644 --- a/physijs/physijs.d.ts +++ b/physijs/physijs.d.ts @@ -3,7 +3,7 @@ // Definitions by: Satoru Kimura // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - +/// declare namespace Physijs { export function noConflict():Object; diff --git a/react/tsconfig.json b/react/tsconfig.json index effc71d799..68e3df52b6 100644 --- a/react/tsconfig.json +++ b/react/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["react.d.ts", "react-tests.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/rebass/tsconfig.json b/rebass/tsconfig.json index effc71d799..9a9976d457 100644 --- a/rebass/tsconfig.json +++ b/rebass/tsconfig.json @@ -4,6 +4,7 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react" } } \ No newline at end of file diff --git a/redux-devtools/tsconfig.json b/redux-devtools/tsconfig.json index effc71d799..9a9976d457 100644 --- a/redux-devtools/tsconfig.json +++ b/redux-devtools/tsconfig.json @@ -4,6 +4,7 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react" } } \ No newline at end of file diff --git a/redux-form/tsconfig.json b/redux-form/tsconfig.json index effc71d799..9a9976d457 100644 --- a/redux-form/tsconfig.json +++ b/redux-form/tsconfig.json @@ -4,6 +4,7 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react" } } \ No newline at end of file diff --git a/redux-saga/tsconfig.json b/redux-saga/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/redux-saga/tsconfig.json +++ b/redux-saga/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/ref-union/index.d.ts b/ref-union/index.d.ts index f48f420261..395925fbdf 100644 --- a/ref-union/index.d.ts +++ b/ref-union/index.d.ts @@ -3,10 +3,6 @@ // Definitions by: Paul Loyd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - - import ref = require('ref'); /** diff --git a/ref/index.d.ts b/ref/index.d.ts index 9f7f8ed8b8..81daa9f057 100644 --- a/ref/index.d.ts +++ b/ref/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Paul Loyd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// export interface Type { /** The size in bytes required to hold this datatype. */ diff --git a/requirejs-domready/index.d.ts b/requirejs-domready/requirejs-domready.d.ts similarity index 58% rename from requirejs-domready/index.d.ts rename to requirejs-domready/requirejs-domready.d.ts index 956282405e..f094a63682 100644 --- a/requirejs-domready/index.d.ts +++ b/requirejs-domready/requirejs-domready.d.ts @@ -3,12 +3,13 @@ // Definitions by: Nobuhiro Nakamura // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +declare module "domReady" { + interface DomReady { + (callback: () => any): DomReady; + version: string; + } -interface DomReady { - (callback: () => any): DomReady; - version: string; + let domReady: DomReady; + + export = domReady; } - -declare let domReady: DomReady; - -export = domReady; diff --git a/restful.js/index.d.ts b/restful.js/index.d.ts index f69fd14523..2556dcb863 100644 --- a/restful.js/index.d.ts +++ b/restful.js/index.d.ts @@ -238,4 +238,4 @@ export interface ResponseInterceptorReturnValue { url?: string; } -export declare default function restful(endpoint: string): Api; +export default function restful(endpoint: string): Api; diff --git a/restful.js/restful.js-tests.ts b/restful.js/restful.js-tests.ts index c56103d240..7702a2d788 100644 --- a/restful.js/restful.js-tests.ts +++ b/restful.js/restful.js-tests.ts @@ -1,4 +1,3 @@ - import restful, { Api, MemberResponse, CollectionResponse, ResponseBody, CollectionEndpoint, MemberEndpoint, } from 'restful.js'; @@ -96,18 +95,18 @@ articleMember = api.one('articles', 1); // http://api.example.com/articles/1 commentMember = articleMember.one('comments', 3); // http://api.example.com/articles/1/comments/3 commentMember.get() .then((response: MemberResponse) => { - var commentEntity = response.body(); + var commentEntity = response.body(); - // You can also call `all` and `one` on an entity - return commentEntity.all('authors').getAll(); // http://api.example.com/articles/1/comments/3/authors -}).then((response: CollectionResponse) => { - var authorEntities = response.body(); + // You can also call `all` and `one` on an entity + return commentEntity.all('authors').getAll(); // http://api.example.com/articles/1/comments/3/authors + }).then((response: CollectionResponse) => { + var authorEntities = response.body(); - authorEntities.forEach((authorEntity: ResponseBody) => { - var author = authorEntity.data(); - console.log(author.name); + authorEntities.forEach((authorEntity: ResponseBody) => { + var author = authorEntity.data(); + console.log(author.name); + }); }); -}); // configure the api api.header('AuthToken', 'test'); @@ -144,32 +143,37 @@ resource.addFullRequestInterceptor(function(params, headers, data, method, url) //... // all args had been modified - return { - params: params, - headers: headers, - data: data, - method: method, - url: url - }; + if (resource === null) { + return { + params: params, + headers: headers, + data: data, + method: method, + url: url + }; + } else { - // just return modified arguments - return { - headers: headers, - data: data - }; + // just return modified arguments + return { + headers: headers, + data: data + }; + } }); resource.addFullResponseInterceptor(function(data, headers, method, url) { // all args had been modified (method and url is read only) - return { - headers: headers, - data: data - }; - - // just return modified arguments - return { - headers: headers - }; + if (url) { + return { + headers: headers, + data: data + }; + } else { + // just return modified arguments + return { + headers: headers + }; + } }); // @@ -193,5 +197,5 @@ commentMember .get() .then(function(commentEntity) { /* */ }) .catch(function(err) { - // deal with the error -}); + // deal with the error + }); diff --git a/rethinkdb/tsconfig.json b/rethinkdb/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/rethinkdb/tsconfig.json +++ b/rethinkdb/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/riot-api-nodejs/riot-api-nodejs-tests.ts b/riot-api-nodejs/riot-api-nodejs-tests.ts index a531f52ee0..fcc0fa6a84 100644 --- a/riot-api-nodejs/riot-api-nodejs-tests.ts +++ b/riot-api-nodejs/riot-api-nodejs-tests.ts @@ -1,5 +1,3 @@ -/// - import * as Api from "riot-api-nodejs"; let ClassicApi = new Api.ClassicAPI([""], Api.region_e.EUW); diff --git a/rsmq/rsmq.d.ts b/rsmq/rsmq.d.ts index c4d3e0de02..622c015714 100644 --- a/rsmq/rsmq.d.ts +++ b/rsmq/rsmq.d.ts @@ -3,8 +3,6 @@ // Definitions by: Qubo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare namespace RedisSMQ { interface CallbackT { (e?:Error, res?:R): void; diff --git a/rsync/rsync-tests.ts b/rsync/rsync-tests.ts index 6e12213bd2..cfc9956dc2 100644 --- a/rsync/rsync-tests.ts +++ b/rsync/rsync-tests.ts @@ -1,5 +1,3 @@ -/// - import * as Rsync from 'rsync'; // -------------------------- diff --git a/run-sequence/run-sequence-tests.ts b/run-sequence/run-sequence-tests.ts index 011c407249..0dedc4a91d 100644 --- a/run-sequence/run-sequence-tests.ts +++ b/run-sequence/run-sequence-tests.ts @@ -1,6 +1,3 @@ - -/// - import gulp = require("gulp"); import tmp = require("run-sequence"); var runSequence = tmp.use(gulp); diff --git a/safari-extension/safari-extension-content-tests.ts b/safari-extension-content/safari-extension-content-tests.ts similarity index 100% rename from safari-extension/safari-extension-content-tests.ts rename to safari-extension-content/safari-extension-content-tests.ts diff --git a/safari-extension/safari-extension-content.d.ts b/safari-extension-content/safari-extension-content.d.ts similarity index 100% rename from safari-extension/safari-extension-content.d.ts rename to safari-extension-content/safari-extension-content.d.ts diff --git a/safari-extension-content/tsconfig.json b/safari-extension-content/tsconfig.json new file mode 100644 index 0000000000..effc71d799 --- /dev/null +++ b/safari-extension-content/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sammy/tsconfig.json b/sammy/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/sammy/tsconfig.json +++ b/sammy/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/scroller/tsconfig.json b/scroller/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/scroller/tsconfig.json +++ b/scroller/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/select2/tsconfig.json b/select2/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/select2/tsconfig.json +++ b/select2/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/sencha_touch/tsconfig.json b/sencha_touch/tsconfig.json index effc71d799..60aefa5519 100644 --- a/sencha_touch/tsconfig.json +++ b/sencha_touch/tsconfig.json @@ -1,8 +1,9 @@ { + "files": ["sencha_touch.d.ts", "SenchaTouch-Tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/sequelize-fixtures/sequelize-fixtures-tests.ts b/sequelize-fixtures/sequelize-fixtures-tests.ts index 5650bc8ab1..a59c3b157e 100644 --- a/sequelize-fixtures/sequelize-fixtures-tests.ts +++ b/sequelize-fixtures/sequelize-fixtures-tests.ts @@ -1,6 +1,4 @@ -/// - -import Sequelize = require('../sequelize'); +import Sequelize = require('sequelize'); import SequelizeFixtures = require('sequelize-fixtures'); var sequelize = new Sequelize("", ""); diff --git a/sequelize/tsconfig.json b/sequelize/tsconfig.json index effc71d799..7a2ec92337 100644 --- a/sequelize/tsconfig.json +++ b/sequelize/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["sequelize.d.ts", "sequelize-tests.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/sharepoint/tsconfig.json b/sharepoint/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/sharepoint/tsconfig.json +++ b/sharepoint/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/siesta/tsconfig.json b/siesta/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/siesta/tsconfig.json +++ b/siesta/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/signalr/tsconfig.json b/signalr/tsconfig.json index effc71d799..ae23059a86 100644 --- a/signalr/tsconfig.json +++ b/signalr/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["signalr.d.ts", "signalr-tests.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/slickgrid/slick.autotooltips-tests.ts b/slickgrid/slick.autotooltips-tests.ts index f2e7f6f39c..7fac5f9599 100644 --- a/slickgrid/slick.autotooltips-tests.ts +++ b/slickgrid/slick.autotooltips-tests.ts @@ -1,7 +1,7 @@ /// -var grid = new Slick.Grid("#myGrid", [], [], {}); -grid.registerPlugin(new Slick.AutoTooltips({ +var tgrid = new Slick.Grid("#myGrid", [], [], {}); +tgrid.registerPlugin(new Slick.AutoTooltips({ enableForCells: true, enableForHeaderCells: true, maxToolTipLength: 100 diff --git a/snapsvg/snapsvg-tests-3.ts b/snapsvg/snapsvg-tests-3.ts index ad4512aa8c..d0d0a7b3fd 100644 --- a/snapsvg/snapsvg-tests-3.ts +++ b/snapsvg/snapsvg-tests-3.ts @@ -246,7 +246,7 @@ window.onload=()=>{ function nextFrame ( el:Snap.Element, frameArray:any[], whichFrame:number ) { if( whichFrame >= frameArray.length ) { return } - el.animate( frameArray[ whichFrame ].animation, frameArray[ whichFrame ].dur, nextFrame.bind( null, el, frameArray, whichFrame + 1 ) ); + el.animate( frameArray[ whichFrame ].animation, frameArray[ whichFrame ].dur, nextFrame.bind( null, el, frameArray, whichFrame + 1 ) ); } diff --git a/sockjs-node/sockjs-node-tests.ts b/sockjs-node/sockjs-node-tests.ts index 629704e7f9..ca80b26e64 100644 --- a/sockjs-node/sockjs-node-tests.ts +++ b/sockjs-node/sockjs-node-tests.ts @@ -1,5 +1,4 @@ - -import sockjs = require("sockjs"); +import sockjs = require("sockjs-node"); import http = require("http"); import stream = require("stream"); @@ -24,7 +23,7 @@ serverOptions.websocket = true; serverOptions.jsessionid = true; serverOptions.jsessionid = () => true; -serverOptions.log = (severity, message) => { }; +serverOptions.log = (severity: any, message: any) => { }; serverOptions.heartbeat_delay = 25000; serverOptions.disconnect_delay = 5000; @@ -32,7 +31,7 @@ serverOptions.disconnect_delay = 5000; var connection: sockjs.Connection; // on('connection') passes a sockJS connection -server.on('connection', (conn) => { +server.on('connection', (conn: any) => { connection = conn; conn = connection; }); diff --git a/sockjs/sockjs.d.ts b/sockjs/index.d.ts similarity index 96% rename from sockjs/sockjs.d.ts rename to sockjs/index.d.ts index e692115764..bfb3eb9e49 100644 --- a/sockjs/sockjs.d.ts +++ b/sockjs/index.d.ts @@ -3,6 +3,9 @@ // Definitions by: Emil Ivanov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export as namespace SockJS; +export = SockJS; + interface SockJSSimpleEvent { type: string; toString(): string; diff --git a/speakeasy/speakeasy-tests.ts b/speakeasy/speakeasy-tests.ts index ae483bb8ee..3c8da97140 100644 --- a/speakeasy/speakeasy-tests.ts +++ b/speakeasy/speakeasy-tests.ts @@ -1,5 +1,3 @@ -/// - import speakeasy = require('speakeasy'); speakeasy.generate_key({length: 20, google_auth_qr: true}); diff --git a/stack-mapper/stack-mapper-tests.ts b/stack-mapper/stack-mapper-tests.ts index 734b7ab3ce..4959e2501b 100644 --- a/stack-mapper/stack-mapper-tests.ts +++ b/stack-mapper/stack-mapper-tests.ts @@ -1,6 +1,4 @@ -/// - -import stackMapper = require("stack-mapper"); +import stackMapper = require("stack-mapper"); var map: any = {}; var sm: stackMapper.StackMapper = stackMapper(map); diff --git a/swipeview/tsconfig.json b/swipeview/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/swipeview/tsconfig.json +++ b/swipeview/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/temp/index.d.ts b/temp/index.d.ts index 3d1f933b02..e757fce8dd 100644 --- a/temp/index.d.ts +++ b/temp/index.d.ts @@ -5,7 +5,7 @@ /// -import * as temp from "./temp"; +import * as temp from "temp"; import * as fs from "fs"; export interface AffixOptions { diff --git a/temp/temp-tests.ts b/temp/temp-tests.ts index b1c6702682..3f8ed01327 100644 --- a/temp/temp-tests.ts +++ b/temp/temp-tests.ts @@ -1,6 +1,5 @@ // Author: Daniel Rosenwasser - import * as temp from "temp"; function testCleanup() { diff --git a/three/tests/canvas/tsconfig.json b/three/tests/canvas/tsconfig.json index b1ae588ecd..fc8d3ac807 100644 --- a/three/tests/canvas/tsconfig.json +++ b/three/tests/canvas/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../../" } diff --git a/three/tests/css3d/tsconfig.json b/three/tests/css3d/tsconfig.json index b1ae588ecd..fc8d3ac807 100644 --- a/three/tests/css3d/tsconfig.json +++ b/three/tests/css3d/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../../" } diff --git a/three/tests/math/tsconfig.json b/three/tests/math/tsconfig.json index b1ae588ecd..fc8d3ac807 100644 --- a/three/tests/math/tsconfig.json +++ b/three/tests/math/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../../" } diff --git a/three/tests/tsconfig.json b/three/tests/tsconfig.json index 19e19d490d..21a2a8931b 100644 --- a/three/tests/tsconfig.json +++ b/three/tests/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../" } diff --git a/three/tests/webgl/tsconfig.json b/three/tests/webgl/tsconfig.json index b1ae588ecd..fc8d3ac807 100644 --- a/three/tests/webgl/tsconfig.json +++ b/three/tests/webgl/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../../" } diff --git a/three/tsconfig.json b/three/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/three/tsconfig.json +++ b/three/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/thrift/thrift-tests.ts b/thrift/thrift-tests.ts index abe39678af..f437764bc9 100644 --- a/thrift/thrift-tests.ts +++ b/thrift/thrift-tests.ts @@ -1,6 +1,3 @@ -/// -/// - // Currently, the thrift bindings are minimal just to support the thrift generated // evernote bindings. Add more tests if you flesh out and plan to use the thrift // bindings more deeply. diff --git a/tmp/tmp-tests.ts b/tmp/tmp-tests.ts index c343f52788..fe8b31fd6a 100644 --- a/tmp/tmp-tests.ts +++ b/tmp/tmp-tests.ts @@ -1,5 +1,4 @@ -/// -import tmp = require('tmp'); +import tmp = require('tmp'); tmp.file((err, path, fd, cleanupCallback) => { if (err) throw err; diff --git a/toastr/toastr-tests.ts b/toastr/toastr-tests.ts index adacb19340..91206a0071 100644 --- a/toastr/toastr-tests.ts +++ b/toastr/toastr-tests.ts @@ -1,7 +1,7 @@ /// function test_basic() { - var t = []; + var t: any[] = []; t.push(toastr.info('Are you the 6 fingered man?')); t.push(toastr.warning('My name is Inigo Montoya. You Killed my father, prepare to die!')); t.push(toastr.success('Have fun storming the castle!', 'Miracle Max Says')); @@ -19,7 +19,7 @@ function test_basic() { function test_fromdemo() { var i = -1, toastCount = 0, - $toastlast, + $toastlast: any, getMessage = function () { var msgs = ['My name is Inigo Montoya. You killed my father. Prepare to die!', '
', diff --git a/toastr/toastr.d.ts b/toastr/toastr.d.ts index edf65d4073..2b1ad4f61f 100644 --- a/toastr/toastr.d.ts +++ b/toastr/toastr.d.ts @@ -199,6 +199,8 @@ interface Toastr { * Get toastr version */ version: string; + + [key: string]: any; } declare var toastr: Toastr; diff --git a/tv4/tsconfig.json b/tv4/tsconfig.json index effc71d799..21e0419397 100644 --- a/tv4/tsconfig.json +++ b/tv4/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["tv4.d.ts", "tv4-tests.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/twix/twix-tests.ts b/twix/twix-tests.ts index bc0ef9ae1e..5417e3d7f4 100644 --- a/twix/twix-tests.ts +++ b/twix/twix-tests.ts @@ -1,5 +1,7 @@ /// +import * as moment from 'moment'; + var someMoment = moment("20111031", "YYYYMMDD"); var otherMoment = moment("20120620", "YYYYMMDD"); var startTime = moment('20120701'); diff --git a/typescript-deferred/typescript-deferred-tests.ts b/typescript-deferred/typescript-deferred-tests.ts index 0bfa825825..daaacf2313 100644 --- a/typescript-deferred/typescript-deferred-tests.ts +++ b/typescript-deferred/typescript-deferred-tests.ts @@ -1,5 +1,3 @@ -/// - import tsd = require('typescript-deferred'); var t1: tsd.PromiseInterface = tsd.when(10) diff --git a/underscore/tsconfig.json b/underscore/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/underscore/tsconfig.json +++ b/underscore/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/vec3/vec3.d.ts b/vec3/index.d.ts similarity index 93% rename from vec3/vec3.d.ts rename to vec3/index.d.ts index 10b201f609..b35fe8ac8c 100644 --- a/vec3/vec3.d.ts +++ b/vec3/index.d.ts @@ -1,10 +1,9 @@ -// Type definitions for Vec3 Librairy +// Type definitions for Vec3 Library // Project: https://www.npmjs.com/package/vec3 // Definitions by: Xavier Stouder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare class Vec3 { +export declare class Vec3 { constructor(x: number, y: number, z: number); constructor(location: number[]); constructor(location: { x: number; y: number; z: number }); diff --git a/vec3/vec3-tests.ts b/vec3/vec3-tests.ts index 8196b9d939..e3bd46c4be 100644 --- a/vec3/vec3-tests.ts +++ b/vec3/vec3-tests.ts @@ -1,5 +1,3 @@ -/// - import {Vec3} from "vec3"; let myVector: Vec3 = new Vec3(10, 10, 10); console.log(myVector.toString()); \ No newline at end of file diff --git a/viewporter/tsconfig.json b/viewporter/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/viewporter/tsconfig.json +++ b/viewporter/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/vinyl-buffer/vinyl-buffer-tests.ts b/vinyl-buffer/vinyl-buffer-tests.ts index 520633bc85..b1311ccbc0 100644 --- a/vinyl-buffer/vinyl-buffer-tests.ts +++ b/vinyl-buffer/vinyl-buffer-tests.ts @@ -1,6 +1,3 @@ - -/// - import buffer = require('vinyl-buffer'); import gulp = require('gulp') import browserify = require('browserify'); diff --git a/vinyl-fs/vinyl-fs-tests.ts b/vinyl-fs/vinyl-fs-tests.ts index 8b211b8400..559fabe55c 100644 --- a/vinyl-fs/vinyl-fs-tests.ts +++ b/vinyl-fs/vinyl-fs-tests.ts @@ -1,10 +1,6 @@ /// /// - -/// - - // from src import vfs = require('vinyl-fs'); diff --git a/vinyl-paths/vinyl-paths-tests.ts b/vinyl-paths/vinyl-paths-tests.ts index e70c0d79b4..30e6a1c874 100644 --- a/vinyl-paths/vinyl-paths-tests.ts +++ b/vinyl-paths/vinyl-paths-tests.ts @@ -1,6 +1,3 @@ - -/// - import gulp = require('gulp'); import del = require('del'); import paths = require('vinyl-paths'); diff --git a/vinyl-source-stream/vinyl-source-stream-tests.ts b/vinyl-source-stream/vinyl-source-stream-tests.ts index 02b902e819..feab418fe2 100644 --- a/vinyl-source-stream/vinyl-source-stream-tests.ts +++ b/vinyl-source-stream/vinyl-source-stream-tests.ts @@ -1,5 +1,3 @@ -/// -/// import gulp = require("gulp"); import vinylSourceStream = require("vinyl-source-stream"); diff --git a/vinyl/index.d.ts b/vinyl/index.d.ts index 212a5b6828..4fe41e4ad8 100644 --- a/vinyl/index.d.ts +++ b/vinyl/index.d.ts @@ -112,6 +112,11 @@ declare class File { */ public isNull(): boolean; + /** + * Returns true if this is a directory. + */ + public isDirectory(): boolean; + /** * Returns a new File object with all attributes cloned. Custom attributes are deep-cloned. */ diff --git a/webcomponents.js/webcomponents.js-tests.ts b/webcomponents.js/webcomponents.js-tests.ts index b5e67abb93..79cbecb9bf 100644 --- a/webcomponents.js/webcomponents.js-tests.ts +++ b/webcomponents.js/webcomponents.js-tests.ts @@ -4,7 +4,7 @@ * Custom Elements */ var fooProto = Object.create(HTMLElement.prototype, { - createdCallback() { + createdCallback(this: HTMLElement) { // `this` should be the created element this.getElementsByTagName("a"); } diff --git a/webix/tsconfig.json b/webix/tsconfig.json index effc71d799..dea67ef9cf 100644 --- a/webix/tsconfig.json +++ b/webix/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["webix.d.ts", "webix-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/webspeechapi/webspeechapi-tests.ts b/webspeechapi/webspeechapi-tests.ts index 91e623b0ff..2612a668bc 100644 --- a/webspeechapi/webspeechapi-tests.ts +++ b/webspeechapi/webspeechapi-tests.ts @@ -35,7 +35,7 @@ declare var select: HTMLSelectElement; } function start() { - select.options.length = 0; + let x: number = select.options.length; recognition.start(); } } diff --git a/winjs/tsconfig.json b/winjs/tsconfig.json index effc71d799..08eb9f4254 100644 --- a/winjs/tsconfig.json +++ b/winjs/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["winjs.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/winrt/winrt-uwp.d.ts b/winrt-uwp/winrt-uwp.d.ts similarity index 100% rename from winrt/winrt-uwp.d.ts rename to winrt-uwp/winrt-uwp.d.ts diff --git a/wiredep/wiredep-tests.ts b/wiredep/wiredep-tests.ts index 9773114703..95c558ed4f 100644 --- a/wiredep/wiredep-tests.ts +++ b/wiredep/wiredep-tests.ts @@ -1,6 +1,3 @@ - -/// - import gulp = require('gulp'); import wiredep = require('wiredep'); diff --git a/wu/wu-tests.ts b/wu/wu-tests.ts index c207820303..e12c5bc5e8 100644 --- a/wu/wu-tests.ts +++ b/wu/wu-tests.ts @@ -10,13 +10,13 @@ declare var describe: any, it: any, mocha: any, assert: { } // Helper for asserting that the given thing is iterable. -assert.iterable = thing => { +assert.iterable = (thing: any) => { assert.ok(wu(thing)); }; // Helper for asserting that all the elements yielded from the |actual| // iterator are in the |expected| set. -assert.eqSet = (expected, actual) => { +assert.eqSet = (expected: any, actual: any) => { assert.iterable(actual); for (var x of actual) { assert.ok(expected.has(x)); @@ -27,7 +27,7 @@ assert.eqSet = (expected, actual) => { // Helper for asserting that all the elements yielded from the |actual| // iterator are equal to and in the same order as the elements of the // |expected| array. -assert.eqArray = (expected, actual) => { +assert.eqArray = (expected: any, actual: any) => { assert.iterable(actual); assert.deepEqual(expected, [...actual]); }; @@ -203,7 +203,7 @@ describe("wu.flatten", () => { }); describe("wu.forEach", () => { it("should iterate over every item", () => { - const items = []; + const items: any[] = []; wu.forEach(x => items.push(x), [1,2,3]); assert.eqArray([1,2,3], items); }); @@ -219,15 +219,15 @@ describe("wu.has", () => { }); describe("wu.invoke", () => { it("should yield the method invokation on each item", () => { - function Greeter(name) { + function Greeter(name: string) { this.name = name } - Greeter.prototype.greet = function (tail) { + Greeter.prototype.greet = function (tail: string) { return "hello " + this.name + tail; }; assert.eqArray(["hello world!", "hello test!"], wu.invoke("greet", "!", - [new Greeter("world"), new Greeter("test")])); + [Greeter("world"), Greeter("test")])); }); }); describe("wu.keys", () => { @@ -391,9 +391,9 @@ describe("wu.zip", () => { }); describe("wu.zipLongest", () => { it("should stop with the longer iterable", () => { - const arr1 = []; + const arr1: any[] = []; arr1[1] = 2; - const arr2 = []; + const arr2: any[] = []; arr2[1] = 3; assert.eqArray([["a", 1], arr1, arr2], wu.zipLongest("a", [1, 2, 3])); @@ -401,7 +401,7 @@ describe("wu.zipLongest", () => { }); describe("wu.zipWith", () => { it("should spread map over the zipped iterables", () => { - const add3 = (a, b, c) => a + b + c; + const add3 = (a: any, b: any, c: any) => a + b + c; assert.eqArray([12, 15, 18], wu.zipWith(add3, [1, 2, 3], diff --git a/xml-parser/xml-parser-tests.ts b/xml-parser/xml-parser-tests.ts index 81518cd28e..03d34dcf3a 100644 --- a/xml-parser/xml-parser-tests.ts +++ b/xml-parser/xml-parser-tests.ts @@ -1,5 +1,4 @@ /// -/// import assert = require('assert'); import parse = require('xml-parser'); diff --git a/xsockets/XSockets-tests.ts b/xsockets/XSockets-tests.ts index 0b65bf9078..215c81bcb8 100644 --- a/xsockets/XSockets-tests.ts +++ b/xsockets/XSockets-tests.ts @@ -49,7 +49,7 @@ conn.publish(XSockets.Events.storage.set, { conn.publish(XSockets.Events.storage.remove, {Key: 'yourKey'}); conn.on(XSockets.Events.storage.getAll, function (data) { - data.forEach(function (item) { + data.forEach(function (item: any) { console.log(item); }); });