diff --git a/ace/tests/tsconfig.json b/ace/tests/tsconfig.json index 19e19d490d..21a2a8931b 100644 --- a/ace/tests/tsconfig.json +++ b/ace/tests/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../" } diff --git a/ag-grid/tsconfig.json b/ag-grid/tsconfig.json index effc71d799..79a3e3d2e2 100644 --- a/ag-grid/tsconfig.json +++ b/ag-grid/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["ag-grid.d.ts", "ag-grid-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/angularjs/legacy/tsconfig.json b/angularjs/legacy/tsconfig.json index 19e19d490d..8721469c2b 100644 --- a/angularjs/legacy/tsconfig.json +++ b/angularjs/legacy/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["angular-1.4.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/antd/tsconfig.json b/antd/tsconfig.json index effc71d799..9a9976d457 100644 --- a/antd/tsconfig.json +++ b/antd/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/assertsharp/assertsharp.d.ts b/assertsharp/assertsharp.d.ts index 2bcd92dd93..66849af3fa 100644 --- a/assertsharp/assertsharp.d.ts +++ b/assertsharp/assertsharp.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export declare default class Assert { +export default class Assert { static AreEqual(expected: T, actual: T, message?: string): void; static AreNotEqual(notExpected: T, actual: T, message?: string): void; static AreNotSame(notExpected: T, actual: T, message?: string): void; diff --git a/async/tsconfig.json b/async/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/async/tsconfig.json +++ b/async/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/backbone-relational/tsconfig.json b/backbone-relational/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/backbone-relational/tsconfig.json +++ b/backbone-relational/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/bluebird/tsconfig.json b/bluebird/tsconfig.json index effc71d799..d8c58dc9f8 100644 --- a/bluebird/tsconfig.json +++ b/bluebird/tsconfig.json @@ -1,7 +1,8 @@ { + "files": ["bluebird.d.ts", "bluebird-tests.ts"], "compilerOptions": { "module": "commonjs", - "target": "es6", + "target": "es5", "noImplicitAny": true, "strictNullChecks": false, "baseUrl": "../" diff --git a/browser-harness/tsconfig.json b/browser-harness/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/browser-harness/tsconfig.json +++ b/browser-harness/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/business-rules-engine/tsconfig.json b/business-rules-engine/tsconfig.json index effc71d799..0ea83480f8 100644 --- a/business-rules-engine/tsconfig.json +++ b/business-rules-engine/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["business-rules-engine.d.ts", "business-rules-engine-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/chai/tsconfig.json b/chai/tsconfig.json index effc71d799..399d03ebc6 100644 --- a/chai/tsconfig.json +++ b/chai/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["chai.d.ts", "chai-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/dustjs-linkedin/dustjs-linkedin-tests.ts b/dustjs-linkedin/dustjs-linkedin-tests.ts index 97a2fffc05..d23c649ef0 100644 --- a/dustjs-linkedin/dustjs-linkedin-tests.ts +++ b/dustjs-linkedin/dustjs-linkedin-tests.ts @@ -1,5 +1,3 @@ -/// - import dust = require("dustjs-linkedin"); // diff --git a/dustjs-linkedin/index.d.ts b/dustjs-linkedin/index.d.ts index 0295ca3be5..5f7f3586d6 100644 --- a/dustjs-linkedin/index.d.ts +++ b/dustjs-linkedin/index.d.ts @@ -89,7 +89,7 @@ export interface Stream { * Registers an event listener. Streams accept a single listener for a given event. * @param evt the event. Possible values are data, end, error (maybe more, look in the source). */ - on(evt: string, callback: (data?: any) => any); + on(evt: string, callback: (data?: any) => any): any; pipe(stream: Stream): Stream; } @@ -126,8 +126,8 @@ export declare function loadSource(compiled: string): Template; * @param name the template name. * @param context a plain object or an instance of dust.Context. */ -export declare function render(name: string, context: any, callback: (err: any, out: string) => any); -export declare function render(name: string, context: Context, callback: (err: any, out: string) => any); +export declare function render(name: string, context: any, callback: (err: any, out: string) => any): void; +export declare function render(name: string, context: Context, callback: (err: any, out: string) => any): void; /** * Compiles and renders source, invoking callback on completion. If no callback is supplied this function returns a Stream object. Use this function when precompilation is not required. diff --git a/easy-api-request/index.d.ts b/easy-api-request/index.d.ts index 14b5971ea6..495379927f 100644 --- a/easy-api-request/index.d.ts +++ b/easy-api-request/index.d.ts @@ -6,10 +6,6 @@ /// /// -/// - - - import stream = require('stream'); import http = require('http'); import request = require('request'); diff --git a/ejs/ejs-tests.ts b/ejs/ejs-tests.ts index fd03dd1e09..b5b46f03b5 100644 --- a/ejs/ejs-tests.ts +++ b/ejs/ejs-tests.ts @@ -1,4 +1,3 @@ -/// import ejs = require("ejs"); var people = ['geddy', 'neil', 'alex']; var html = ejs.render('<%= people.join(", "); %>', { people: people }); diff --git a/electron-window-state/electron-window-state-tests.ts b/electron-window-state/electron-window-state-tests.ts index 2d1dfbfe72..912db76e2b 100644 --- a/electron-window-state/electron-window-state-tests.ts +++ b/electron-window-state/electron-window-state-tests.ts @@ -24,8 +24,8 @@ app.on('ready', function () { const s2 = windowStateKeeper({ defaultWidth: 1000, defaultHeight: 800, - file: __dirname + '/foo.json', - path: __dirname, + file: '' + '/foo.json', + path: '', maximize: true, fullScreen: false, }); diff --git a/electron-window-state/electron-window-state.d.ts b/electron-window-state/electron-window-state.d.ts index ca36e539b4..45fce5edaf 100644 --- a/electron-window-state/electron-window-state.d.ts +++ b/electron-window-state/electron-window-state.d.ts @@ -3,6 +3,7 @@ // Definitions by: rhysd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// declare namespace ElectronWindowState { interface WindowState { diff --git a/email-addresses/email-addresses.d.ts b/email-addresses/index.d.ts similarity index 69% rename from email-addresses/email-addresses.d.ts rename to email-addresses/index.d.ts index f8ff9455d7..85161906ea 100644 --- a/email-addresses/email-addresses.d.ts +++ b/email-addresses/index.d.ts @@ -3,6 +3,5 @@ // Definitions by: John Grimsey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function parseOneAddress(opts: any): any; -declare function parseAddressList(opts: any): any; +export function parseOneAddress(opts: any): any; +export function parseAddressList(opts: any): any; diff --git a/enzyme/tsconfig.json b/enzyme/tsconfig.json index effc71d799..9a9976d457 100644 --- a/enzyme/tsconfig.json +++ b/enzyme/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/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts b/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts index 203656f8c9..d84c6cd5a6 100644 --- a/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts +++ b/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts @@ -1,4 +1,4 @@ -/// +import * as moment from 'moment'; // Minimum Setup $("#datetimepicker1").datetimepicker(); diff --git a/eonasdan-bootstrap-datetimepicker/index.d.ts b/eonasdan-bootstrap-datetimepicker/index.d.ts index 8a12d75cf5..c278fd0290 100644 --- a/eonasdan-bootstrap-datetimepicker/index.d.ts +++ b/eonasdan-bootstrap-datetimepicker/index.d.ts @@ -60,7 +60,7 @@ export interface Icons { close?: string; } -const enum DayOfWeek { +export declare const enum DayOfWeek { Sunday = 0, Monday = 1, Tuesday = 2, diff --git a/epiceditor/epiceditor-tests.ts b/epiceditor/epiceditor-tests.ts index c5c8ab9ed2..4a79734fcf 100644 --- a/epiceditor/epiceditor-tests.ts +++ b/epiceditor/epiceditor-tests.ts @@ -45,10 +45,10 @@ editor.exitFullscreen(); editor.reflow(); editor.reflow('height'); -var marked; +var marked: any; var opts = { container: 'epiceditor', - textarea: null, + textarea: null, basePath: 'epiceditor', clientSideStorage: true, localStorageName: 'epiceditor', diff --git a/epiceditor/epiceditor.d.ts b/epiceditor/epiceditor.d.ts index 325e35535e..9517c35b29 100644 --- a/epiceditor/epiceditor.d.ts +++ b/epiceditor/epiceditor.d.ts @@ -43,7 +43,7 @@ declare class EpicEditor { unload(callback?: Function): EpicEditor; getElement(element: string): any; is(state: string): boolean; - open(filename: string); + open(filename: string): any; importFile(filename?: string, content?: string): void; exportFile(filename?: string, type?: string): any; rename(oldName: string, newName: string): void; diff --git a/es6-collections/tsconfig.json b/es6-collections/tsconfig.json index effc71d799..e8a71bb27d 100644 --- a/es6-collections/tsconfig.json +++ b/es6-collections/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es6", + "target": "es5", "noImplicitAny": true, "strictNullChecks": false, "baseUrl": "../" diff --git a/es6-promise/tsconfig.json b/es6-promise/tsconfig.json index effc71d799..e8a71bb27d 100644 --- a/es6-promise/tsconfig.json +++ b/es6-promise/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es6", + "target": "es5", "noImplicitAny": true, "strictNullChecks": false, "baseUrl": "../" diff --git a/escape-string-regexp/escape-string-regexp-tests.ts b/escape-string-regexp/escape-string-regexp-tests.ts index 0e9e9e54c8..c763916398 100644 --- a/escape-string-regexp/escape-string-regexp-tests.ts +++ b/escape-string-regexp/escape-string-regexp-tests.ts @@ -1,5 +1,3 @@ -/// - import escapeStringRegexp = require('escape-string-regexp'); var inputString: string = '^abc$'; diff --git a/evernote/evernote-tests.ts b/evernote/evernote-tests.ts index ce84750fab..76598a83be 100644 --- a/evernote/evernote-tests.ts +++ b/evernote/evernote-tests.ts @@ -1,5 +1,3 @@ -/// - import { Evernote } from "evernote"; var client = new Evernote.Client({ token: "abcdef", sandbox: true }); diff --git a/express-brute-memcached/express-brute-memcached-tests.ts b/express-brute-memcached/express-brute-memcached-tests.ts index 4efb4bdb56..3d1c976229 100644 --- a/express-brute-memcached/express-brute-memcached-tests.ts +++ b/express-brute-memcached/express-brute-memcached-tests.ts @@ -1,5 +1,3 @@ -/// -/// /// import * as express from "express"; diff --git a/express-brute-memcached/express-brute-memcached.d.ts b/express-brute-memcached/index.d.ts similarity index 96% rename from express-brute-memcached/express-brute-memcached.d.ts rename to express-brute-memcached/index.d.ts index 43240ea944..8930045ee3 100644 --- a/express-brute-memcached/express-brute-memcached.d.ts +++ b/express-brute-memcached/index.d.ts @@ -3,14 +3,11 @@ // Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - - /** * @summary Memcached options. * @interface */ -interface MemcachedStoreOptions { +export interface MemcachedStoreOptions { prefix: string; /** @@ -102,7 +99,7 @@ interface MemcachedStoreOptions { * @summary A memcached store adapter. * @class */ -export declare default class MemcachedStore { +export default class MemcachedStore { /** * @summary Constructor. * @constructor diff --git a/express-brute-mongo/express-brute-mongo-tests.ts b/express-brute-mongo/express-brute-mongo-tests.ts index a9a0127511..23fdab05a8 100644 --- a/express-brute-mongo/express-brute-mongo-tests.ts +++ b/express-brute-mongo/express-brute-mongo-tests.ts @@ -1,7 +1,3 @@ -/// -/// -/// - import express = require("../express"); import ExpressBrute = require("express-brute"); import MongoStore = require("express-brute-mongo"); diff --git a/express-brute/express-brute-tests.ts b/express-brute/express-brute-tests.ts index 5663b0cbc6..ac6a11fe9f 100644 --- a/express-brute/express-brute-tests.ts +++ b/express-brute/express-brute-tests.ts @@ -1,5 +1,3 @@ -/// - import express = require("../express"); import ExpressBrute = require("express-brute"); diff --git a/express-graphql/index.d.ts b/express-graphql/index.d.ts index dbf2e375b9..3645d1701d 100644 --- a/express-graphql/index.d.ts +++ b/express-graphql/index.d.ts @@ -48,4 +48,4 @@ type Middleware = (request: Request, response: Response) => void; * Middleware for express; takes an options object or function as input to * configure behavior, and returns an express middleware. */ -export declare default function graphqlHTTP(options: Options): Middleware; +export default function graphqlHTTP(options: Options): Middleware; diff --git a/extjs/ExtJS-tests.ts b/extjs/ExtJS-tests.ts index 121acbd3ba..d4965b3f37 100644 --- a/extjs/ExtJS-tests.ts +++ b/extjs/ExtJS-tests.ts @@ -13,7 +13,7 @@ Ext.define("MyApp.view.CompanyGridPanel", { companyStore: null }, - initComponent: function () { + initComponent: function() { Ext.applyIf(this, { itemId: "companyGridPanel", title: "Company Listing", @@ -21,43 +21,43 @@ Ext.define("MyApp.view.CompanyGridPanel", { columnLines: true, columns: [ - { - xtype: "gridcolumn", - dataIndex: "company", - text: "Company", - flex: 1 - }, { - xtype: "numbercolumn", - dataIndex: "price", - text: "Price", - renderer: Ext.util.Format.usMoney - }, { - xtype: "numbercolumn", - dataIndex: "change", - text: "Change", - format: "0.00" - }, { - xtype: "numbercolumn", - dataIndex: "pctChange", - text: "% Change", - format: "0.00" - }, { - xtype: "datecolumn", - dataIndex: "lastChange", - text: "Last Change" - }, { - xtype: "gridcolumn", - dataIndex: "industry", - text: "Industry" - } + { + xtype: "gridcolumn", + dataIndex: "company", + text: "Company", + flex: 1 + }, { + xtype: "numbercolumn", + dataIndex: "price", + text: "Price", + renderer: Ext.util.Format.usMoney + }, { + xtype: "numbercolumn", + dataIndex: "change", + text: "Change", + format: "0.00" + }, { + xtype: "numbercolumn", + dataIndex: "pctChange", + text: "% Change", + format: "0.00" + }, { + xtype: "datecolumn", + dataIndex: "lastChange", + text: "Last Change" + }, { + xtype: "gridcolumn", + dataIndex: "industry", + text: "Industry" + } ], tbar: [ - { - xtype: "checkbox", - itemId: "manufacturingFilter", - boxLabel: "Show only Manufacturing companies" - } + { + xtype: "checkbox", + itemId: "manufacturingFilter", + boxLabel: "Show only Manufacturing companies" + } ] }); @@ -80,7 +80,7 @@ function test_events() { gridPanel.fireEvent("select", null, this); } -function testEventHandler( grid, record, index, eventOptions) { +function testEventHandler(grid: any, record: any, index: any, eventOptions: any) { return true; } diff --git a/fabric/fabricjs-tests.ts b/fabric/fabricjs-tests.ts index af5f6dd0e8..97b630b9b1 100644 --- a/fabric/fabricjs-tests.ts +++ b/fabric/fabricjs-tests.ts @@ -100,7 +100,6 @@ function sample3() { function applyFilterValue(index: number, prop: string, value: any) { var obj: fabric.IImage = canvas.getActiveObject(); if (obj.filters[index]) { - obj.filters[index][prop] = value; obj.applyFilters(canvas.renderAll.bind(canvas)); } } diff --git a/fancybox/tsconfig.json b/fancybox/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/fancybox/tsconfig.json +++ b/fancybox/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/ffi/ffi.d.ts b/ffi/ffi.d.ts index 7f83072230..7581282b3a 100644 --- a/ffi/ffi.d.ts +++ b/ffi/ffi.d.ts @@ -6,8 +6,6 @@ /// /// -/// - declare module "ffi" { import ref = require('ref'); import StructType = require('ref-struct'); diff --git a/ffi/node-ffi-tests.ts b/ffi/node-ffi-tests.ts index fa554e088d..0aba505c11 100644 --- a/ffi/node-ffi-tests.ts +++ b/ffi/node-ffi-tests.ts @@ -1,8 +1,3 @@ - -/// - -/// - import ffi = require('ffi'); import ref = require('ref'); import Struct = require('ref-struct'); diff --git a/firebase-token-generator/firebase-token-generator-test.ts.tscparams.ts b/firebase-token-generator/firebase-token-generator-test.ts.tscparams.ts deleted file mode 100644 index 155c6fe9e3..0000000000 --- a/firebase-token-generator/firebase-token-generator-test.ts.tscparams.ts +++ /dev/null @@ -1 +0,0 @@ ---module commonjs \ No newline at end of file diff --git a/flake-idgen/flake-idgen-tests.ts b/flake-idgen/flake-idgen-tests.ts index 5828bc9137..5e45e92db4 100644 --- a/flake-idgen/flake-idgen-tests.ts +++ b/flake-idgen/flake-idgen-tests.ts @@ -1,5 +1,3 @@ -/// - // require flake-idgen import FlakeId = require('flake-idgen'); let flakeIdGen1 = new FlakeId({datacenter: 9, worker: 7}); diff --git a/flexSlider/tsconfig.json b/flexSlider/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/flexSlider/tsconfig.json +++ b/flexSlider/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/freedom/freedom-tests.ts b/freedom/freedom-tests.ts index 4047d7615c..3661832f39 100644 --- a/freedom/freedom-tests.ts +++ b/freedom/freedom-tests.ts @@ -1,23 +1,23 @@ /// -var freedomModule :freedom.FreedomInModuleEnv; -var freedomCore :freedom.FreedomInCoreEnv; +var freedomModule: freedom.FreedomInModuleEnv; +var freedomCore: freedom.FreedomInCoreEnv; -var parentModule :freedom.ParentModuleThing = freedomModule(); -parentModule.on('message', (x :string) => { +var parentModule: freedom.ParentModuleThing = freedomModule(); +parentModule.on('message', (x: string) => { }); -var coreInModule :freedom.Core = freedomModule['core'](); -coreInModule.getLogger('tag').then((logger :freedom.Logger) => { - logger.log('message'); +var coreInModule: freedom.Core = freedomModule['core'](); +coreInModule.getLogger('tag').then((logger: freedom.Logger) => { + logger.log('message'); }); -var freedomConsole :freedom.Console.Console = freedomModule['core.console'](); -var doneLogging :Promise = freedomConsole.log('source', 'message'); +var freedomConsole: freedom.Console.Console = freedomModule['core.console'](); +var doneLogging = freedomConsole.log('source', 'message'); freedomCore('freedom-module.json', { - 'logger': 'loggingprovider.json', - 'debug': 'log' + 'logger': 'loggingprovider.json', + 'debug': 'log' }).then((moduleFactory) => { - moduleFactory.close(); + moduleFactory.close(); }); diff --git a/freedom/tsconfig.json b/freedom/tsconfig.json index effc71d799..ebc4b2ef13 100644 --- a/freedom/tsconfig.json +++ b/freedom/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["freedom-core.env.d.ts", "freedom-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/fullCalendar/fullCalendar-tests.ts b/fullCalendar/fullCalendar-tests.ts index e5a613946d..2ba64f5701 100644 --- a/fullCalendar/fullCalendar-tests.ts +++ b/fullCalendar/fullCalendar-tests.ts @@ -2,6 +2,8 @@ /// /// +import * as FullCalendar from 'fullCalendar'; + // All examples from http://arshaw.com/fullcalendar/docs/ $('#calendar').fullCalendar({}); diff --git a/fullCalendar/tsconfig.json b/fullCalendar/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/fullCalendar/tsconfig.json +++ b/fullCalendar/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/gamequery/tsconfig.json b/gamequery/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/gamequery/tsconfig.json +++ b/gamequery/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/geoip-lite/geoip-lite-tests.ts b/geoip-lite/geoip-lite-tests.ts index fb809369b7..c541535d99 100644 --- a/geoip-lite/geoip-lite-tests.ts +++ b/geoip-lite/geoip-lite-tests.ts @@ -1,5 +1,3 @@ -/// - // require geoip-lite import geoip = require('geoip-lite'); diff --git a/git/node-git-tests.ts b/git/node-git-tests.ts index e08a14189f..1199a8c53c 100644 --- a/git/node-git-tests.ts +++ b/git/node-git-tests.ts @@ -1,5 +1,3 @@ -/// - import base = require("git"); var git = new base.Git("../.git"); diff --git a/glob-expand/index.d.ts b/glob-expand/index.d.ts index b6bfedd7d1..c69bd141ac 100644 --- a/glob-expand/index.d.ts +++ b/glob-expand/index.d.ts @@ -10,8 +10,9 @@ interface Option { cwd?: string; } +type _glob = typeof glob; declare namespace expand { - var glob: typeof glob; + var glob: _glob; var VERSION: string; } diff --git a/go/goJS-tests.ts b/go/goJS-tests.ts index 4a84eb83cc..d75744dd83 100644 --- a/go/goJS-tests.ts +++ b/go/goJS-tests.ts @@ -155,7 +155,7 @@ function init() { o => o.diagram.commandHandler.canUngroupSelection()) ); - function nodeInfo(d) { // Tooltip info for a node data object + function nodeInfo(d: any) { // Tooltip info for a node data object var str = "Node " + d.key + ": " + d.text + "\n"; if (d.group) str += "member of " + d.group; @@ -203,7 +203,7 @@ function init() { // Define the appearance and behavior for Links: - function linkInfo(d) { // Tooltip info for a link data object + function linkInfo(d: any) { // Tooltip info for a link data object return "Link:\nfrom " + d.from + " to " + d.to; } diff --git a/graphviz/graphviz-tests.ts b/graphviz/graphviz-tests.ts index 01fa791502..41eb49c880 100644 --- a/graphviz/graphviz-tests.ts +++ b/graphviz/graphviz-tests.ts @@ -1,5 +1,3 @@ -/// - import graphviz = require('graphviz'); // Create digraph G diff --git a/gulp-autoprefixer/gulp-autoprefixer-tests.ts b/gulp-autoprefixer/gulp-autoprefixer-tests.ts index 1b83ca46bb..386e1a882a 100644 --- a/gulp-autoprefixer/gulp-autoprefixer-tests.ts +++ b/gulp-autoprefixer/gulp-autoprefixer-tests.ts @@ -1,5 +1,3 @@ -/// - import * as gulp from "gulp"; import * as autoprefixer from "gulp-autoprefixer"; diff --git a/gulp-cached/gulp-cached-tests.ts b/gulp-cached/gulp-cached-tests.ts index 52e5d0e48a..13b9f9c2d5 100644 --- a/gulp-cached/gulp-cached-tests.ts +++ b/gulp-cached/gulp-cached-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as gulp from "gulp"; import cached = require("gulp-cached"); diff --git a/gulp-changed/gulp-changed-tests.ts b/gulp-changed/gulp-changed-tests.ts index 640b01022e..572e46ebb2 100644 --- a/gulp-changed/gulp-changed-tests.ts +++ b/gulp-changed/gulp-changed-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as gulp from "gulp"; import changed = require("gulp-changed"); import minifyHtml = require("gulp-minify-html"); diff --git a/gulp-coffeeify/gulp-coffeeify-tests.ts b/gulp-coffeeify/gulp-coffeeify-tests.ts index c8b08fe6d4..74f1beaa96 100644 --- a/gulp-coffeeify/gulp-coffeeify-tests.ts +++ b/gulp-coffeeify/gulp-coffeeify-tests.ts @@ -1,6 +1,3 @@ - -/// - import gulp = require('gulp'); import coffeeify = require('gulp-coffeeify'); diff --git a/gulp-filter/gulp-filter-tests.ts b/gulp-filter/gulp-filter-tests.ts index 0854c73582..903f4083f7 100644 --- a/gulp-filter/gulp-filter-tests.ts +++ b/gulp-filter/gulp-filter-tests.ts @@ -1,9 +1,3 @@ - - - -/// -/// - import * as gulp from 'gulp'; import * as uglify from 'gulp-uglify'; import * as less from 'gulp-less'; diff --git a/gulp-gh-pages/gulp-gh-pages-tests.ts b/gulp-gh-pages/gulp-gh-pages-tests.ts index 1b50869107..df527b0023 100644 --- a/gulp-gh-pages/gulp-gh-pages-tests.ts +++ b/gulp-gh-pages/gulp-gh-pages-tests.ts @@ -1,5 +1,3 @@ -/// - import * as gulp from "gulp"; import * as ghPages from "gulp-gh-pages"; diff --git a/gulp-help/gulp-help-tests.ts b/gulp-help/gulp-help-tests.ts index 7808f9de9e..1217c4151e 100644 --- a/gulp-help/gulp-help-tests.ts +++ b/gulp-help/gulp-help-tests.ts @@ -1,7 +1,5 @@ /// -/// - 'use strict'; import gulpHelp = require('gulp-help'); diff --git a/gulp-if/gulp-if-tests.ts b/gulp-if/gulp-if-tests.ts index b33fe1c8d6..fabc26dc54 100644 --- a/gulp-if/gulp-if-tests.ts +++ b/gulp-if/gulp-if-tests.ts @@ -1,5 +1,3 @@ -/// - import gulp = require('gulp'); import _if = require('gulp-if'); diff --git a/gulp-istanbul/gulp-istanbul-tests.ts b/gulp-istanbul/gulp-istanbul-tests.ts index 0934d39696..a57932419d 100644 --- a/gulp-istanbul/gulp-istanbul-tests.ts +++ b/gulp-istanbul/gulp-istanbul-tests.ts @@ -1,5 +1,3 @@ -/// - import gulp = require("gulp"); import istanbul = require("gulp-istanbul"); diff --git a/gulp-jade/gulp-jade-tests.ts b/gulp-jade/gulp-jade-tests.ts index 664ea8104e..f184184573 100644 --- a/gulp-jade/gulp-jade-tests.ts +++ b/gulp-jade/gulp-jade-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as gulp from 'gulp'; import * as jade from 'gulp-jade'; diff --git a/gulp-load-plugins/gulp-load-plugins-tests.ts b/gulp-load-plugins/gulp-load-plugins-tests.ts index 21de2a0479..a0cff649ec 100644 --- a/gulp-load-plugins/gulp-load-plugins-tests.ts +++ b/gulp-load-plugins/gulp-load-plugins-tests.ts @@ -1,8 +1,3 @@ - -/// - -/// - import * as gulp from 'gulp'; import * as gulpConcat from 'gulp-concat'; import * as gulpLoadPlugins from 'gulp-load-plugins'; diff --git a/gulp-mocha/gulp-mocha-tests.ts b/gulp-mocha/gulp-mocha-tests.ts index dd7f820e87..c84d710380 100644 --- a/gulp-mocha/gulp-mocha-tests.ts +++ b/gulp-mocha/gulp-mocha-tests.ts @@ -1,5 +1,3 @@ -/// - import * as gulp from "gulp"; import * as mocha from "gulp-mocha"; diff --git a/gulp-newer/gulp-newer-tests.ts b/gulp-newer/gulp-newer-tests.ts index 05a355337d..7d713bfabb 100644 --- a/gulp-newer/gulp-newer-tests.ts +++ b/gulp-newer/gulp-newer-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as gulp from "gulp"; import newer = require("gulp-newer"); import minifyHtml = require("gulp-minify-html"); diff --git a/gulp-plumber/gulp-plumber-tests.ts b/gulp-plumber/gulp-plumber-tests.ts index 21d742da9d..49740293ed 100644 --- a/gulp-plumber/gulp-plumber-tests.ts +++ b/gulp-plumber/gulp-plumber-tests.ts @@ -1,6 +1,3 @@ - -/// - import gulp = require('gulp'); import plumber = require('gulp-plumber'); diff --git a/gulp-remember/gulp-remember-tests.ts b/gulp-remember/gulp-remember-tests.ts index 487fa52bbd..1feb6b6bc1 100644 --- a/gulp-remember/gulp-remember-tests.ts +++ b/gulp-remember/gulp-remember-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as gulp from "gulp"; import remember = require("gulp-remember"); diff --git a/gulp-rename/gulp-rename-tests.ts b/gulp-rename/gulp-rename-tests.ts index 3340feac01..4d3e713234 100644 --- a/gulp-rename/gulp-rename-tests.ts +++ b/gulp-rename/gulp-rename-tests.ts @@ -1,5 +1,3 @@ -/// - 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 c770a866da..6a17057495 100644 --- a/gulp-replace/gulp-replace-tests.ts +++ b/gulp-replace/gulp-replace-tests.ts @@ -1,5 +1,3 @@ -/// - 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 1c3fb07cd8..e20839ab99 100644 --- a/gulp-rev-replace/gulp-rev-replace-tests.ts +++ b/gulp-rev-replace/gulp-rev-replace-tests.ts @@ -1,7 +1,3 @@ - - -/// - import * as gulp from 'gulp'; import * as revReplace from 'gulp-rev-replace'; import * as rev from 'gulp-rev'; diff --git a/gulp-ruby-sass/gulp-ruby-sass-tests.ts b/gulp-ruby-sass/gulp-ruby-sass-tests.ts index 0585ee0161..69346a16d8 100644 --- a/gulp-ruby-sass/gulp-ruby-sass-tests.ts +++ b/gulp-ruby-sass/gulp-ruby-sass-tests.ts @@ -1,5 +1,3 @@ -/// - 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 5493df65a0..72192512a7 100644 --- a/gulp-sass/gulp-sass-tests.ts +++ b/gulp-sass/gulp-sass-tests.ts @@ -1,5 +1,3 @@ -/// - import gulp = require("gulp"); import * as sass from "gulp-sass"; diff --git a/gulp-sort/gulp-sort-tests.ts b/gulp-sort/gulp-sort-tests.ts index edf56628e9..62e17d27a2 100644 --- a/gulp-sort/gulp-sort-tests.ts +++ b/gulp-sort/gulp-sort-tests.ts @@ -1,7 +1,5 @@ /** Tests taken from https://github.com/pgilad/gulp-sort#usage */ -/// - import * as gulp from 'gulp'; import * as sort from 'gulp-sort'; import * as gulpUtil from 'gulp-util'; diff --git a/gulp-sourcemaps/gulp-sourcemaps-tests.ts b/gulp-sourcemaps/gulp-sourcemaps-tests.ts index 0a649159bd..9ea2849f1e 100644 --- a/gulp-sourcemaps/gulp-sourcemaps-tests.ts +++ b/gulp-sourcemaps/gulp-sourcemaps-tests.ts @@ -1,5 +1,3 @@ -/// - import gulp = require("gulp"); import sourcemaps = require("gulp-sourcemaps"); diff --git a/gulp-svg-sprite/gulp-svg-sprite-tests.ts b/gulp-svg-sprite/gulp-svg-sprite-tests.ts index 678adeb570..5029163b39 100644 --- a/gulp-svg-sprite/gulp-svg-sprite-tests.ts +++ b/gulp-svg-sprite/gulp-svg-sprite-tests.ts @@ -1,7 +1,3 @@ - - -/// - import svgSprite = require('gulp-svg-sprite'); import spriter = require('svg-sprite'); import gulp = require('gulp') diff --git a/gulp-task-listing/gulp-task-listing-tests.ts b/gulp-task-listing/gulp-task-listing-tests.ts index af059e1a2a..bb4ff09487 100644 --- a/gulp-task-listing/gulp-task-listing-tests.ts +++ b/gulp-task-listing/gulp-task-listing-tests.ts @@ -1,6 +1,3 @@ - -/// - import gulp = require('gulp'); import gulpTaskListing = require('gulp-task-listing'); diff --git a/gulp-typedoc/gulp-typedoc-tests.ts b/gulp-typedoc/gulp-typedoc-tests.ts index 1bfee5b8eb..753b7e15be 100644 --- a/gulp-typedoc/gulp-typedoc-tests.ts +++ b/gulp-typedoc/gulp-typedoc-tests.ts @@ -1,5 +1,3 @@ -/// - 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 0fa0b13b68..bf9bb03b4b 100644 --- a/gulp-typescript/gulp-typescript-tests.ts +++ b/gulp-typescript/gulp-typescript-tests.ts @@ -1,5 +1,3 @@ -/// - 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 6d61e6671d..2a664dfd09 100644 --- a/gulp-uglify/gulp-uglify-tests.ts +++ b/gulp-uglify/gulp-uglify-tests.ts @@ -1,6 +1,3 @@ -/// - - 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 1a17c4aa7c..c4c3172ba4 100644 --- a/gulp-useref/gulp-useref-tests.ts +++ b/gulp-useref/gulp-useref-tests.ts @@ -1,12 +1,4 @@ - - - -/// - -/// - /// -/// import * as gulp from 'gulp'; import * as useref from 'gulp-useref'; diff --git a/gulp-util/gulp-util-tests.ts b/gulp-util/gulp-util-tests.ts index c238fd6aad..5cfb81ce78 100644 --- a/gulp-util/gulp-util-tests.ts +++ b/gulp-util/gulp-util-tests.ts @@ -1,8 +1,6 @@ /// /// -/// - import gulp = require('gulp'); import util = require('gulp-util'); import path = require('path'); diff --git a/hammerjs/tsconfig.json b/hammerjs/tsconfig.json index effc71d799..d35922609b 100644 --- a/hammerjs/tsconfig.json +++ b/hammerjs/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["hammerjs.d.ts", "hammerjs-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/hasher/hasher.d.ts b/hasher/hasher.d.ts index d438b78c60..02ff40e9ff 100644 --- a/hasher/hasher.d.ts +++ b/hasher/hasher.d.ts @@ -3,6 +3,7 @@ // Definitions by: flyfishMT // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// declare namespace HasherJs { diff --git a/hashmap/tsconfig.json b/hashmap/tsconfig.json index effc71d799..215eda8b95 100644 --- a/hashmap/tsconfig.json +++ b/hashmap/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["hashmap.d.ts", "hashmap-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/he/he-tests.ts b/he/he-tests.ts index 395eb94ef0..6045574fa5 100644 --- a/he/he-tests.ts +++ b/he/he-tests.ts @@ -1,5 +1,3 @@ -/// - import he = require('he'); function main() { diff --git a/he/he.d.ts b/he/index.d.ts similarity index 93% rename from he/he.d.ts rename to he/index.d.ts index 6d829d912f..a890ad823c 100644 --- a/he/he.d.ts +++ b/he/index.d.ts @@ -5,11 +5,11 @@ // he - "HTML Entities" - A high quality pair of HTML encode and decode functions. +export as namespace he; +export var version: string; -declare var version: string; - -interface EncodeOptions { +export interface EncodeOptions { /** * The default value for the useNamedReferences option is false. This * means that encode() will not use any named character references @@ -47,7 +47,7 @@ interface EncodeOptions { allowUnsafeSymbols?: boolean; } -interface Encode { +export interface Encode { /** * Encode a string of text * @@ -66,7 +66,7 @@ interface Encode { } declare var encode: Encode; -interface DecodeOptions { +export interface DecodeOptions { /** * The default value for the isAttributeValue option is false. This means * that decode() will decode the string as if it were used in a text @@ -87,7 +87,7 @@ interface DecodeOptions { strict?: boolean; } -interface Decode { +export interface Decode { /** * Decode a string of HTML text * @@ -99,7 +99,7 @@ interface Decode { options: DecodeOptions; } -declare var decode: Decode; +export var decode: Decode; /** * Escape XML entities @@ -108,6 +108,6 @@ declare var decode: Decode; * contexts in XML or HTML documents. Only the following characters are * escaped: &, <, >, ", ', and `. */ -declare function escape(text: string): string; +export function escape(text: string): string; -declare var unescape: Decode; +export var unescape: Decode; diff --git a/highlight.js/tsconfig.json b/highlight.js/tsconfig.json index effc71d799..e4a6848b03 100644 --- a/highlight.js/tsconfig.json +++ b/highlight.js/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["highlightjs.d.ts", "highlightjs-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/howler/howler-tests.ts b/howler/howler-tests.ts index c358f8e3be..bdd3a575bd 100644 --- a/howler/howler-tests.ts +++ b/howler/howler-tests.ts @@ -2,13 +2,9 @@ * howler-tests.ts * Created by xperiments on 02/09/14. */ -/// import * as howler from "howler"; -howler.Howler = Howler; -howler.Howl = Howl; - Howler.codecs('ogg'); Howler.iOSAutoEnable = true; var sound = new Howl({ diff --git a/html-entities/html-entities-tests.ts b/html-entities/html-entities-tests.ts index d9c4f76ce7..58e81b6e59 100644 --- a/html-entities/html-entities-tests.ts +++ b/html-entities/html-entities-tests.ts @@ -1,5 +1,3 @@ -/// - import * as htmlEntities from "html-entities"; let entities = new htmlEntities.AllHtmlEntities(); diff --git a/html-entities/html-entities.d.ts b/html-entities/index.d.ts similarity index 68% rename from html-entities/html-entities.d.ts rename to html-entities/index.d.ts index f7b0aa38c5..b93c8ece8c 100644 --- a/html-entities/html-entities.d.ts +++ b/html-entities/index.d.ts @@ -3,14 +3,13 @@ // Definitions by: Xavier Stouder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - declare abstract class Entities { encode(toEncode: string): string; encodeNonUTF(toEncode: string): string; encodeNonASCII(toEncode: string): string; decode(toDecode: string): string; } -declare class XmlEntities extends Entities { } -declare class Html4Entities extends Entities { } -declare class Html5Entities extends Entities { } -declare class AllHtmlEntities extends Entities { } +export class XmlEntities extends Entities { } +export class Html4Entities extends Entities { } +export class Html5Entities extends Entities { } +export class AllHtmlEntities extends Entities { } diff --git a/html-minifier/index.d.ts b/html-minifier/index.d.ts index df04fb559d..81fc61f3af 100644 --- a/html-minifier/index.d.ts +++ b/html-minifier/index.d.ts @@ -3,9 +3,6 @@ // Definitions by: Tanguy Krotoff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - import * as UglifyJS from '../uglify-js'; import * as CleanCSS from 'clean-css'; import * as RelateUrl from 'relateurl'; diff --git a/htmlparser2/htmlparser2-tests.ts b/htmlparser2/htmlparser2-tests.ts index 53f6ee2aad..21289b96f5 100644 --- a/htmlparser2/htmlparser2-tests.ts +++ b/htmlparser2/htmlparser2-tests.ts @@ -1,4 +1,3 @@ -/// /** * Created by staticfunction on 8/4/14. */ diff --git a/htmltojsx/htmltojsx-tests.ts b/htmltojsx/htmltojsx-tests.ts index 052ae8baa4..5f13815f6d 100644 --- a/htmltojsx/htmltojsx-tests.ts +++ b/htmltojsx/htmltojsx-tests.ts @@ -1,4 +1,3 @@ -/// import HTMLtoJSX = require("htmltojsx"); var converter = new HTMLtoJSX({ createClass: true, diff --git a/http-status-codes/http-status-codes-tests.ts b/http-status-codes/http-status-codes-tests.ts index 02c2a104b6..8f0e3aae2c 100644 --- a/http-status-codes/http-status-codes-tests.ts +++ b/http-status-codes/http-status-codes-tests.ts @@ -1,5 +1,3 @@ -/// - import HttpStatusCodes = require("http-status-codes"); var ACCEPTED = HttpStatusCodes.ACCEPTED; diff --git a/http-string-parser/http-string-parser-tests.ts b/http-string-parser/http-string-parser-tests.ts index db3686e712..4d7526dc49 100644 --- a/http-string-parser/http-string-parser-tests.ts +++ b/http-string-parser/http-string-parser-tests.ts @@ -1,6 +1,4 @@ -/// - -import parser = require("http-string-parser"); +import parser = require("http-string-parser"); function test_request(): void { var result = parser.parseRequest("HTTP/1.1 GET /\r\nHost: www.example.com\r\n\r\n"); diff --git a/httperr/httperr-tests.ts b/httperr/httperr-tests.ts index 131ec4dab8..e0b186549a 100644 --- a/httperr/httperr-tests.ts +++ b/httperr/httperr-tests.ts @@ -1,6 +1,4 @@ -/// -import httperr = require('httperr'); - +import httperr = require('httperr'); // ---------------------------------------- // Basic usage example from: https://github.com/pluma/httperr/blob/1.0.0/README.md @@ -15,7 +13,6 @@ console.log(err); message: 'The path "/example" could not be resolved' } */ -throw err; /* NotFound: The path "/example" could not be resolved at ... diff --git a/humane/humane.d.ts b/humane/humane.d.ts index 922ddf2fc2..032dc0366c 100644 --- a/humane/humane.d.ts +++ b/humane/humane.d.ts @@ -27,7 +27,7 @@ interface Humane { info: Function; error: Function; spawn(options: HumaneOptions): Function; - remove(any): void; + remove(x: any): void; log(message: string): Humane; log(message: string, callback: Function): Humane; log(message: string, options: HumaneOptions): Humane; diff --git a/i18next-express-middleware/i18next-express-middleware.d.ts b/i18next-express-middleware/i18next-express-middleware.d.ts index e569adcb88..2967a3b7be 100644 --- a/i18next-express-middleware/i18next-express-middleware.d.ts +++ b/i18next-express-middleware/i18next-express-middleware.d.ts @@ -3,7 +3,6 @@ // Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// /// declare namespace I18next { @@ -36,7 +35,7 @@ declare namespace i18nextExpressMiddleware { } declare module "i18next-express-middleware" { - import express = require("../express"); + import express = require("express"); import i18next = require("i18next"); /** diff --git a/i18next/tsconfig.json b/i18next/tsconfig.json index effc71d799..99ea7358df 100644 --- a/i18next/tsconfig.json +++ b/i18next/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["i18next.d.ts", "i18next-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/immutability-helper/immutability-helper-tests.ts b/immutability-helper/immutability-helper-tests.ts index 2229278d36..b30b7b46ef 100644 --- a/immutability-helper/immutability-helper-tests.ts +++ b/immutability-helper/immutability-helper-tests.ts @@ -1,5 +1,3 @@ -/// - import * as update from 'immutability-helper'; import { newContext } from 'immutability-helper'; diff --git a/ini/index.d.ts b/ini/index.d.ts new file mode 100644 index 0000000000..f534ff1b8d --- /dev/null +++ b/ini/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for ini v1.3.3 +// Project: https://github.com/isaacs/ini +// Definitions by: Marcin Porębski +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +interface EncodeOptions { + section: string + whitespace: boolean +} + +export function decode(inistring: string): any; +export function parse(initstring: string): any; +export function encode(object: any, options?: EncodeOptions): string; +export function stringify(object: any, options?: EncodeOptions): string; +export function safe(val: string): string; +export function unsafe(val: string): string; diff --git a/ini/ini-tests.ts b/ini/ini-tests.ts index 44241625f7..841d7f8865 100644 --- a/ini/ini-tests.ts +++ b/ini/ini-tests.ts @@ -1,4 +1,3 @@ -/// /// import fs = require("fs"); diff --git a/ini/ini.d.ts b/ini/ini.d.ts deleted file mode 100644 index a54769d9c7..0000000000 --- a/ini/ini.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Type definitions for ini v1.3.3 -// Project: https://github.com/isaacs/ini -// Definitions by: Marcin Porębski -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - -interface EncodeOptions { - section: string - whitespace: boolean -} - -declare function decode(inistring: string): any; - -declare function parse(initstring: string): any; - -declare function encode(object: any, options?: EncodeOptions): string; - -declare function stringify(object: any, options?: EncodeOptions): string; - -declare function safe(val: string): string; - -declare function unsafe(val: string): string; diff --git a/is-my-json-valid/is-my-json-valid-tests.ts b/is-my-json-valid/is-my-json-valid-tests.ts index 2a58f3da7f..c853a53e33 100644 --- a/is-my-json-valid/is-my-json-valid-tests.ts +++ b/is-my-json-valid/is-my-json-valid-tests.ts @@ -1,8 +1,5 @@ -/// - import validator = require('is-my-json-valid'); - // // Usage // diff --git a/ix.js/ix-tests.ts b/ix.js/ix-tests.ts index 6953621ca3..a9cc960cc7 100644 --- a/ix.js/ix-tests.ts +++ b/ix.js/ix-tests.ts @@ -1,5 +1,3 @@ -/// - var ec_ns = (a: number, b: string) => a.toString() == b; //equality comparer on number,string var ec_ss = (a: string, b: string) => a == b; //equality comparer on string,string var ec_nn = (a: number, b: number) => a === b; //equality comparer on number,number diff --git a/jade/jade-tests.ts b/jade/jade-tests.ts index 6b4774021f..2f8fd9d70e 100644 --- a/jade/jade-tests.ts +++ b/jade/jade-tests.ts @@ -1,5 +1,3 @@ -/// - import * as jade from 'jade'; jade.compile("b")(); diff --git a/jasmine-jquery/jasmine-jquery-tests.ts b/jasmine-jquery/jasmine-jquery-tests.ts index 1515f32ed2..8542dd8bc8 100644 --- a/jasmine-jquery/jasmine-jquery-tests.ts +++ b/jasmine-jquery/jasmine-jquery-tests.ts @@ -100,7 +100,6 @@ describe("Jasmine jQuery extension", () => { var data = getJSONFixture('myjsonfixture.json'); var fixtures = loadJSONFixtures('myjsonfixture.json'); - var data = fixtures['myjsonfixture.json']; }); describe("Event Spies", () => { diff --git a/jdataview/jdataview.d.ts b/jdataview/jdataview.d.ts index 9df0c1ff73..6ed80f870a 100644 --- a/jdataview/jdataview.d.ts +++ b/jdataview/jdataview.d.ts @@ -80,6 +80,7 @@ declare class jDataView implements DataView { writeFloat32(value: number, littleEndian?: boolean): void writeFloat64(value: number, littleEndian?: boolean): void } +interface jDataView extends DataView { } declare namespace jDataView { interface Bytes { diff --git a/jjve/jjve-tests.ts b/jjve/jjve-tests.ts index 3e6ad22bbc..33fa93e08d 100644 --- a/jjve/jjve-tests.ts +++ b/jjve/jjve-tests.ts @@ -1,6 +1,3 @@ - -/// - import jjv = require('jjv'); import jjve = require('jjve'); diff --git a/johnny-five/johnny-five-tests.ts b/johnny-five/johnny-five-tests.ts index 930a67ea88..919f1fd7d5 100644 --- a/johnny-five/johnny-five-tests.ts +++ b/johnny-five/johnny-five-tests.ts @@ -1,5 +1,3 @@ -/// - import five = require('johnny-five'); var board = new five.Board(); diff --git a/jqrangeslider/jqrangeslider-tests.ts b/jqrangeslider/jqrangeslider-tests.ts index 152ab28e75..e48589b0a6 100644 --- a/jqrangeslider/jqrangeslider-tests.ts +++ b/jqrangeslider/jqrangeslider-tests.ts @@ -71,7 +71,7 @@ $("#formatterExample").dateRangeSlider({ formatter: function (val) { var days = val.getDay(), month = val.getMonth() + 1, - year = val.getYear(); + year = val.getFullYear(); return days + "/" + month + "/" + year; } }); diff --git a/jqrangeslider/jqrangeslider.d.ts b/jqrangeslider/jqrangeslider.d.ts index 2e93ae6f56..92add14f7d 100644 --- a/jqrangeslider/jqrangeslider.d.ts +++ b/jqrangeslider/jqrangeslider.d.ts @@ -45,14 +45,14 @@ interface JQRangeSliderOptions { interface JQNumericRangeSliderOptions extends JQRangeSliderOptions { bounds?: JQRangeSliderNumericRange; // min and max values of the slider defaultValues?: JQRangeSliderNumericRange; // values selected by default on construction - formatter?: (integer) => string; // customize displayed label text + formatter?: (int: number) => string; // customize displayed label text step?: number; // allows to customize values rounding, and graphically render this rounding } interface JQDateRangeSliderOptions extends JQRangeSliderOptions { bounds?: JQRangeSliderDateRange; // min and max values of the slider defaultValues?: JQRangeSliderDateRange; // values selected by default on construction - formatter?: (Date) => string; // customize displayed label text + formatter?: (date: Date) => string; // customize displayed label text step?: JQRangeSliderDateSteps; // allows to customize values rounding, and graphically render this rounding } diff --git a/jquery.colorbox/jquery.colorbox.d.ts b/jquery.colorbox/jquery.colorbox.d.ts index 4af0e7e87f..5437c0bf18 100644 --- a/jquery.colorbox/jquery.colorbox.d.ts +++ b/jquery.colorbox/jquery.colorbox.d.ts @@ -252,7 +252,7 @@ interface ColorboxStatic { /** * This method allows you to call Colorbox without having to assign it to an element. */ - (settings: ColorboxSettings); + (settings: ColorboxSettings): any; /** * This method moves to the next item in a group and are the same as pressing the 'next' or 'previous' buttons. */ diff --git a/jquery.cycle/tsconfig.json b/jquery.cycle/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.cycle/tsconfig.json +++ b/jquery.cycle/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 5e684a6e2b..9ed5a9fb8a 100644 --- a/jquery.dataTables/tsconfig.json +++ b/jquery.dataTables/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["jquery.dataTables.d.ts", "jquery.dataTables-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/jquery.jnotify/tsconfig.json b/jquery.jnotify/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.jnotify/tsconfig.json +++ b/jquery.jnotify/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.timeago/tsconfig.json b/jquery.timeago/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.timeago/tsconfig.json +++ b/jquery.timeago/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.timepicker/tsconfig.json b/jquery.timepicker/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.timepicker/tsconfig.json +++ b/jquery.timepicker/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.timer/jquery.timer.d.ts b/jquery.timer/jquery.timer.d.ts index 6b8c5d6358..3259369a96 100644 --- a/jquery.timer/jquery.timer.d.ts +++ b/jquery.timer/jquery.timer.d.ts @@ -8,7 +8,7 @@ interface JQueryTimer { // #region Constructors (action?: Function, time?: Number, autostart?: Boolean): Object; - set(any): Object; + set(x: any): Object; // #endregion // #region Actions diff --git a/jquery.tooltipster/tsconfig.json b/jquery.tooltipster/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.tooltipster/tsconfig.json +++ b/jquery.tooltipster/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.validation/tsconfig.json b/jquery.validation/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.validation/tsconfig.json +++ b/jquery.validation/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery.watermark/tsconfig.json b/jquery.watermark/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery.watermark/tsconfig.json +++ b/jquery.watermark/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index a3a8e6581d..3501444a5a 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1039,7 +1039,6 @@ function test_css() { function test_cssHooks() { if (!$.cssHooks) { throw ("jQuery 1.4.3 or above is required for this plugin to work"); - return; } $.cssHooks["someCSSProp"] = { get: function (elem, computed, extra) { }, diff --git a/jquery/tsconfig.json b/jquery/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquery/tsconfig.json +++ b/jquery/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jquerymobile/tsconfig.json b/jquerymobile/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jquerymobile/tsconfig.json +++ b/jquerymobile/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jqueryui/tsconfig.json b/jqueryui/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jqueryui/tsconfig.json +++ b/jqueryui/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/js-data/tsconfig.json b/js-data/tsconfig.json index effc71d799..f56d59a029 100644 --- a/js-data/tsconfig.json +++ b/js-data/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["js-data.d.ts", "js-data-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/karma-coverage/index.d.ts b/karma-coverage/index.d.ts index 84d8fc9f57..dd6a382239 100644 --- a/karma-coverage/index.d.ts +++ b/karma-coverage/index.d.ts @@ -3,10 +3,6 @@ // Definitions by: Tanguy Krotoff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - - import * as karma from 'karma'; import * as istanbul from 'istanbul'; diff --git a/knockout.deferred.updates/tsconfig.json b/knockout.deferred.updates/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/knockout.deferred.updates/tsconfig.json +++ b/knockout.deferred.updates/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/knockout.viewmodel/knockout.viewmodel.d.ts b/knockout.viewmodel/knockout.viewmodel.d.ts index 220bedf842..59903bcacf 100644 --- a/knockout.viewmodel/knockout.viewmodel.d.ts +++ b/knockout.viewmodel/knockout.viewmodel.d.ts @@ -8,7 +8,7 @@ interface KnockoutViewModelStatic { toModel(viewmodel: any): any; fromModel(model: any, options?: any): any; - updateFromModel(viewmodel: any, model: any); + updateFromModel(viewmodel: any, model: any): any; // INTERNAL flag: enable logging of conversions // logs will be written to console diff --git a/knockout/tests/knockout-tests.ts b/knockout/tests/knockout-tests.ts index e9334a7534..f0f1332e27 100644 --- a/knockout/tests/knockout-tests.ts +++ b/knockout/tests/knockout-tests.ts @@ -571,7 +571,7 @@ function test_misc() { }); this.observableFactory = function(): KnockoutObservable{ - if (true) { + if (!!true) { return ko.computed({ read:function(){ return 3; diff --git a/knockout/tsconfig.json b/knockout/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/knockout/tsconfig.json +++ b/knockout/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/koa-bodyparser/koa-bodyparser-tests.ts b/koa-bodyparser/koa-bodyparser-tests.ts index 511c05ffc4..03eb72e1bf 100644 --- a/koa-bodyparser/koa-bodyparser-tests.ts +++ b/koa-bodyparser/koa-bodyparser-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as Koa from "koa"; import bodyParser = require("koa-bodyparser"); diff --git a/koa-compose/tsconfig.json b/koa-compose/tsconfig.json index effc71d799..5264bd3305 100644 --- a/koa-compose/tsconfig.json +++ b/koa-compose/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["index.d.ts", "koa-compose-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/koa-favicon/koa-favicon-tests.ts b/koa-favicon/koa-favicon-tests.ts index 99f15295a1..72dfdb5aaa 100644 --- a/koa-favicon/koa-favicon-tests.ts +++ b/koa-favicon/koa-favicon-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as Koa from "koa"; import favicon = require("koa-favicon"); diff --git a/koa-json/koa-json-tests.ts b/koa-json/koa-json-tests.ts index 2091353f7b..deb3aa8e0d 100644 --- a/koa-json/koa-json-tests.ts +++ b/koa-json/koa-json-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as Koa from "koa"; import * as json from 'koa-json'; diff --git a/koa-router/koa-router-tests.ts b/koa-router/koa-router-tests.ts index 97b90f0850..3b805a5306 100644 --- a/koa-router/koa-router-tests.ts +++ b/koa-router/koa-router-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as Koa from "koa"; import * as Router from "koa-router"; diff --git a/koa-static/koa-static-tests.ts b/koa-static/koa-static-tests.ts index a9a3f920a8..2bd7d41cde 100644 --- a/koa-static/koa-static-tests.ts +++ b/koa-static/koa-static-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as Koa from "koa"; import serve = require("koa-static"); diff --git a/koa/tsconfig.json b/koa/tsconfig.json index effc71d799..5a79c95a0f 100644 --- a/koa/tsconfig.json +++ b/koa/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["index.d.ts", "koa-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/lodash-decorators/tsconfig.json b/lodash-decorators/tsconfig.json index 01ed952cc8..cf91544f8f 100644 --- a/lodash-decorators/tsconfig.json +++ b/lodash-decorators/tsconfig.json @@ -5,6 +5,6 @@ "noImplicitAny": true, "strictNullChecks": false, "baseUrl": "../", - "exprimentalDecorators": true + "experimentalDecorators": true } } \ No newline at end of file diff --git a/mailparser/mailparser.d.ts b/mailparser/index.d.ts similarity index 98% rename from mailparser/mailparser.d.ts rename to mailparser/index.d.ts index d03efecf33..acb0156916 100644 --- a/mailparser/mailparser.d.ts +++ b/mailparser/index.d.ts @@ -3,11 +3,8 @@ // Definitions by: Peter Snider // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// - - import WritableStream = NodeJS.WritableStream; import EventEmitter = NodeJS.EventEmitter; @@ -55,9 +52,7 @@ interface ParsedMail { attachments?: Attachment[]; } - - -declare class MailParser implements WritableStream { +export class MailParser implements WritableStream { constructor(options?: Options); on(event: string, callback: (any: any) => void): this; diff --git a/mailparser/mailparser-tests.ts b/mailparser/mailparser-tests.ts index b7df9adb44..18c84bef95 100644 --- a/mailparser/mailparser-tests.ts +++ b/mailparser/mailparser-tests.ts @@ -1,11 +1,7 @@ -/// - import mailparser_mod = require("mailparser"); import MailParser = mailparser_mod.MailParser; import ParsedMail = mailparser_mod.ParsedMail; - - var mailparser = new MailParser(); diff --git a/maquette/maquette.d.ts b/maquette/maquette.d.ts index 7ad5081ed0..085db7796c 100644 --- a/maquette/maquette.d.ts +++ b/maquette/maquette.d.ts @@ -78,7 +78,7 @@ declare namespace maquette { onmouseout?: (ev?: MouseEvent) => boolean|void; onmouseover?: (ev?: MouseEvent) => boolean|void; onmouseup?: (ev?: MouseEvent) => boolean|void; - onmousewheel?: (ev?: MouseWheelEvent) => boolean|void; + onmousewheel?: (ev?: MouseEvent) => boolean|void; onscroll?: (ev?: UIEvent) => boolean|void; onsubmit?: (ev?: Event) => boolean|void; spellcheck?: boolean; diff --git a/merge-descriptors/merge-descriptors-tests.ts b/merge-descriptors/merge-descriptors-tests.ts index 81376320ff..6a5770e178 100644 --- a/merge-descriptors/merge-descriptors-tests.ts +++ b/merge-descriptors/merge-descriptors-tests.ts @@ -1,5 +1,4 @@ -/// -import mixin = require('merge-descriptors'); +import mixin = require('merge-descriptors'); function testAssertion(condition: boolean, errorMessage: string) { if (!condition) { diff --git a/moment/moment-tests.ts b/moment/moment-tests.ts index 8fe60c2229..3761e1e805 100644 --- a/moment/moment-tests.ts +++ b/moment/moment-tests.ts @@ -475,5 +475,3 @@ moment.locale('en', { }); console.log(moment.version); - -moment.defaultFormat = 'YYYY-MM-DD HH:mm'; diff --git a/mongodb/mongodb-1.4.9-tests.ts b/mongodb/mongodb-1.4.9-tests.ts index 3f3efbb554..28cb21b48e 100644 --- a/mongodb/mongodb-1.4.9-tests.ts +++ b/mongodb/mongodb-1.4.9-tests.ts @@ -1,5 +1,3 @@ -/// - // Test source : https://github.com/mongodb/node-mongodb-native import mongodb = require('mongodb'); var MongoClient = mongodb.MongoClient; diff --git a/mongodb/mongodb-tests.ts b/mongodb/mongodb-tests.ts index 72589a4704..cea5175e69 100644 --- a/mongodb/mongodb-tests.ts +++ b/mongodb/mongodb-tests.ts @@ -1,5 +1,3 @@ -/// - // Test source : https://github.com/mongodb/node-mongodb-native import mongodb = require('mongodb'); var MongoClient = mongodb.MongoClient; diff --git a/mongodb/tsconfig.json b/mongodb/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/mongodb/tsconfig.json +++ b/mongodb/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/mongoose-auto-increment/mongoose-auto-increment-tests.ts b/mongoose-auto-increment/mongoose-auto-increment-tests.ts index c87394a8e2..10f371cc19 100644 --- a/mongoose-auto-increment/mongoose-auto-increment-tests.ts +++ b/mongoose-auto-increment/mongoose-auto-increment-tests.ts @@ -1,6 +1,3 @@ - -/// - import * as autoIncrement from 'mongoose-auto-increment'; import * as mongoose from 'mongoose'; import { Schema } from 'mongoose'; diff --git a/mongoose-deep-populate/index.d.ts b/mongoose-deep-populate/index.d.ts index db7d480e2a..9c2de04b49 100644 --- a/mongoose-deep-populate/index.d.ts +++ b/mongoose-deep-populate/index.d.ts @@ -6,4 +6,4 @@ import { Mongoose, Schema } from 'mongoose'; -export declare default function(mognoose: Mongoose): (schema: Schema, options: Object) => void; +export default function(mognoose: Mongoose): (schema: Schema, options: Object) => void; diff --git a/mongoose-deep-populate/mongoose-deep-populate-tests.ts b/mongoose-deep-populate/mongoose-deep-populate-tests.ts index 4733a1acf6..e3e7fd9194 100644 --- a/mongoose-deep-populate/mongoose-deep-populate-tests.ts +++ b/mongoose-deep-populate/mongoose-deep-populate-tests.ts @@ -1,6 +1,3 @@ - -/// - import mongooseDeepPopulate from 'mongoose-deep-populate'; import * as mongoose from 'mongoose'; import { Schema } from 'mongoose'; diff --git a/mongoose-mock/mongoose-mock-tests.ts b/mongoose-mock/mongoose-mock-tests.ts index d14ffd79b0..b963b9dece 100644 --- a/mongoose-mock/mongoose-mock-tests.ts +++ b/mongoose-mock/mongoose-mock-tests.ts @@ -1,6 +1,3 @@ - -/// - import mongooseMock = require('mongoose-mock'); // returns a mongoose object diff --git a/morgan/morgan-tests.ts b/morgan/morgan-tests.ts index 4a0df99024..6c88cdfb7b 100644 --- a/morgan/morgan-tests.ts +++ b/morgan/morgan-tests.ts @@ -1,4 +1,3 @@ -/// /** * Created by staticfunction on 8/3/14. */ diff --git a/mqtt/mqtt-tests.ts b/mqtt/mqtt-tests.ts index 8e33ca3721..4022616c03 100644 --- a/mqtt/mqtt-tests.ts +++ b/mqtt/mqtt-tests.ts @@ -1,5 +1,3 @@ -/// - import mqtt = require('mqtt'); var client: mqtt.Client = mqtt.connect('mqtt://test.mosquitto.org'); diff --git a/ms/ms-tests.ts b/ms/ms-tests.ts index 75312e9277..4e886506f6 100644 --- a/ms/ms-tests.ts +++ b/ms/ms-tests.ts @@ -1,5 +1,3 @@ -/// - import ms = require('ms'); ms('2 days') // 172800000 diff --git a/msnodesql/tsconfig.json b/msnodesql/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/msnodesql/tsconfig.json +++ b/msnodesql/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/mustache/tsconfig.json b/mustache/tsconfig.json index effc71d799..16deaac3b5 100644 --- a/mustache/tsconfig.json +++ b/mustache/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["mustache.d.ts", "mustache-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/mysql/mysql-tests.ts b/mysql/mysql-tests.ts index 080bece2db..8a8a106192 100644 --- a/mysql/mysql-tests.ts +++ b/mysql/mysql-tests.ts @@ -1,6 +1,4 @@ -/// - -import fs = require('fs'); +import fs = require('fs'); import mysql = require('mysql'); import stream = require('stream'); diff --git a/natural-sort/index.d.ts b/natural-sort/index.d.ts index 55721f935c..4e929d4edc 100644 --- a/natural-sort/index.d.ts +++ b/natural-sort/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Antonio Morales // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export as namespace naturalSort; declare function naturalSort(a: T, b: T): number; export = naturalSort; diff --git a/natural-sort/natural-sort-tests.ts b/natural-sort/natural-sort-tests.ts index e9fbd7a5fe..b336542520 100644 --- a/natural-sort/natural-sort-tests.ts +++ b/natural-sort/natural-sort-tests.ts @@ -1,5 +1,5 @@ -import naturalSort = require("naturalSort"); +import naturalSort = require("natural-sort"); [5, 3, 2, 4, 1].sort(naturalSort); ["a", "c", "b", "z", "w", "l"].sort(naturalSort); diff --git a/ncp/ncp.d.ts b/ncp/index.d.ts similarity index 68% rename from ncp/ncp.d.ts rename to ncp/index.d.ts index 1f4de0f21c..6f9c74026d 100644 --- a/ncp/ncp.d.ts +++ b/ncp/index.d.ts @@ -5,9 +5,8 @@ /// - -declare function ncp(source: string, destination: string, callback: (err: Error) => void): void; -declare function ncp(source: string, destination: string, options: Options, callback: (err: Error) => void): void; +export function ncp(source: string, destination: string, callback: (err: Error) => void): void; +export function ncp(source: string, destination: string, options: Options, callback: (err: Error) => void): void; interface Options { filter?: RegExp; diff --git a/ng-facebook/ng-facebook.d.ts b/ng-facebook/ng-facebook.d.ts index 9b5fc053f1..9b65acb682 100644 --- a/ng-facebook/ng-facebook.d.ts +++ b/ng-facebook/ng-facebook.d.ts @@ -4,6 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +/// declare namespace angular.ngFacebook { interface IFacebookProvider { diff --git a/ng-notify/ng-notify-tests.ts b/ng-notify/ng-notify-tests.ts index 4a03d62cec..eba3f22787 100644 --- a/ng-notify/ng-notify-tests.ts +++ b/ng-notify/ng-notify-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// class NgNotifyTestController { diff --git a/ng-notify/ng-notify.d.ts b/ng-notify/ng-notify.d.ts index de0eeaafc6..6b0b24e535 100644 --- a/ng-notify/ng-notify.d.ts +++ b/ng-notify/ng-notify.d.ts @@ -2,7 +2,8 @@ // Project: https://github.com/matowens/ng-notify // Definitions by: Nick Zamosenchuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// + +/// declare namespace ngNotify { diff --git a/node-fibers/node-fibers-tests.ts b/node-fibers/node-fibers-tests.ts index c14c1b03d5..8184866216 100644 --- a/node-fibers/node-fibers-tests.ts +++ b/node-fibers/node-fibers-tests.ts @@ -5,7 +5,7 @@ import Fiber = require("fibers"); import Future = require("fibers/future"); -function sleep(ms) { +function sleep(ms: number) { var fiber = Fiber.current; setTimeout(function() { fiber.run(); @@ -20,7 +20,7 @@ Fiber(function() { }).run(); console.log('back in main'); -var inc = Fiber(function(start) { +var inc = Fiber(function(start: any) { var total = start; while (true) { total += Fiber.yield(total); @@ -80,7 +80,7 @@ console.log('done!'); // This function returns a future which resolves after a timeout. This // demonstrates manually resolving futures. -function sleep2(ms) { +function sleep2(ms: number) { var future = new Future(); setTimeout(function() { future.return(); diff --git a/node-fibers/node-fibers.d.ts b/node-fibers/node-fibers.d.ts index 640fec5bfa..bc818dd946 100644 --- a/node-fibers/node-fibers.d.ts +++ b/node-fibers/node-fibers.d.ts @@ -36,8 +36,8 @@ declare module "fibers/future" { return(result?: any): void; throw (error: any): void; wait (): void; - static wait(future: Future); - static wait(future_list: Future[]); + static wait(future: Future): any; + static wait(future_list: Future[]): any; static wrap(fn: Function): Future } diff --git a/node-getopt/index.d.ts b/node-getopt/index.d.ts index 35811064f8..304f09bd4c 100644 --- a/node-getopt/index.d.ts +++ b/node-getopt/index.d.ts @@ -24,7 +24,7 @@ declare class ParsedOption { } interface EventCallback { - (arguments: string[], options: StringMap): void; + (args: string[], options: StringMap): void; } interface ErrorFunc { diff --git a/node-jsfl-runner/node-jsfl-runner.d.ts b/node-jsfl-runner/index.d.ts similarity index 68% rename from node-jsfl-runner/node-jsfl-runner.d.ts rename to node-jsfl-runner/index.d.ts index 59c152988b..97a777cf00 100644 --- a/node-jsfl-runner/node-jsfl-runner.d.ts +++ b/node-jsfl-runner/index.d.ts @@ -5,7 +5,7 @@ /// -interface JSFL { +export interface JSFL { init: (...args: any[]) => void; [index: string]: any; } @@ -17,14 +17,14 @@ interface JSFL { * @param initParams Parameters to pass to JSFL init function * @param callback Callback */ -declare function createJSFL(jsfl: JSFL, fileName: string, initParams: Array, callback: (err: NodeJS.ErrnoException) => void): void; +export function createJSFL(jsfl: JSFL, fileName: string, initParams: Array, callback: (err: NodeJS.ErrnoException) => void): void; /** * Deletes a JSFL file * @param fileName Path to JSFL file to delete * @param callback Callback */ -declare function deleteJSFL(fileName: string, callback: (err: NodeJS.ErrnoException) => void): void; +export function deleteJSFL(fileName: string, callback: (err: NodeJS.ErrnoException) => void): void; /** * Runs a JSFL file @@ -32,4 +32,4 @@ declare function deleteJSFL(fileName: string, callback: (err: NodeJS.ErrnoExcept * @param fileName Path to JSFL file to run * @param callback Callback */ -declare function runJSFL(flashLocation: string, fileName: string, callback: (err: NodeJS.ErrnoException) => void): void; +export function runJSFL(flashLocation: string, fileName: string, callback: (err: NodeJS.ErrnoException) => void): void; diff --git a/node-jsfl-runner/node-jsfl-runner-tests.ts b/node-jsfl-runner/node-jsfl-runner-tests.ts index 31202b9f71..a0b8d8f6cd 100644 --- a/node-jsfl-runner/node-jsfl-runner-tests.ts +++ b/node-jsfl-runner/node-jsfl-runner-tests.ts @@ -1,5 +1,3 @@ -/// - import * as jsfl from 'node-jsfl-runner'; let myJSFL: jsfl.JSFL = { diff --git a/nodemailer-pickup-transport/nodemailer-pickup-transport-tests.ts b/nodemailer-pickup-transport/nodemailer-pickup-transport-tests.ts index 6ae0d4f0d1..4580c64d4b 100644 --- a/nodemailer-pickup-transport/nodemailer-pickup-transport-tests.ts +++ b/nodemailer-pickup-transport/nodemailer-pickup-transport-tests.ts @@ -1,6 +1,3 @@ - -/// - import nodemailer = require('nodemailer') import pickupTransport = require('nodemailer-pickup-transport') diff --git a/nvd3/nvd3-test-line.ts b/nvd3/nvd3-test-line.ts index 11431b2b9b..f5e10ccb50 100644 --- a/nvd3/nvd3-test-line.ts +++ b/nvd3/nvd3-test-line.ts @@ -22,7 +22,7 @@ namespace nvd3_test_line { return chart; }, - callback: function (graph) { + callback: function (graph: any) { window.onresize = function () { var width = nv.utils.windowSize().width - 40, height = nv.utils.windowSize().height - 40, diff --git a/nvd3/nvd3-test-multibarChart2.ts b/nvd3/nvd3-test-multibarChart2.ts index ac108c4edf..beeca9642d 100644 --- a/nvd3/nvd3-test-multibarChart2.ts +++ b/nvd3/nvd3-test-multibarChart2.ts @@ -29,7 +29,7 @@ namespace nvd3_test_multibarChart2 { return chart; }, - callback: function (graph) { + callback: function (graph: nv.MultiBarChart) { nv.utils.windowResize(function () { var width = nv.utils.windowSize().width; var height = nv.utils.windowSize().height; diff --git a/nvd3/nvd3-test-stackArea.ts b/nvd3/nvd3-test-stackArea.ts index c906446ced..fd305b4c80 100644 --- a/nvd3/nvd3-test-stackArea.ts +++ b/nvd3/nvd3-test-stackArea.ts @@ -25,7 +25,7 @@ namespace nvd3_test_stackArea { svg.transition().duration(500).call(chart); return chart; }, - callback: function (graph) { + callback: function (graph: nv.StackedAreaChart) { graph.dispatch.on('tooltipShow', function (e) { var offsetElement = document.getElementById("chart"), diff --git a/passport-http-bearer/passport-http-bearer-tests.ts b/passport-http-bearer/passport-http-bearer-tests.ts index e7fa32188d..7b7407b48c 100644 --- a/passport-http-bearer/passport-http-bearer-tests.ts +++ b/passport-http-bearer/passport-http-bearer-tests.ts @@ -1,5 +1,3 @@ -/// - /** * Created by Isman Usoh . */ diff --git a/phantom/phantom.d.ts b/phantom/index.d.ts similarity index 91% rename from phantom/phantom.d.ts rename to phantom/index.d.ts index b9b211a2c2..1fd45260a2 100644 --- a/phantom/phantom.d.ts +++ b/phantom/index.d.ts @@ -3,16 +3,14 @@ // Definitions by: horiuchi , Random // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export function create(args?: string[]): Promise; - -declare function create(args?: string[]): Promise; - -interface PhantomJS { +export interface PhantomJS { createPage(): Promise; exit(returnValue?: number): void; } -interface WebPage { +export interface WebPage { open(url: string): Promise; close(): Promise; @@ -43,7 +41,7 @@ interface WebPage { clearCookies(): Promise; } -interface ICookie { +export interface ICookie { name: string, value: string, domain?: string, @@ -53,7 +51,7 @@ interface ICookie { expires?: Date } -interface IPaperSizeOptions { +export interface IPaperSizeOptions { width?: string; height?: string; format?: string; diff --git a/phantom/phantom-tests.ts b/phantom/phantom-tests.ts index e53b7a1ffa..2842f1e543 100644 --- a/phantom/phantom-tests.ts +++ b/phantom/phantom-tests.ts @@ -1,5 +1,3 @@ -/// - import phantom = require("phantom"); phantom.create().then((ph: phantom.PhantomJS): void => { diff --git a/phantom/tsconfig.json b/phantom/tsconfig.json index eae3671297..2e0701c27a 100644 --- a/phantom/tsconfig.json +++ b/phantom/tsconfig.json @@ -1,5 +1,5 @@ { - "files": ["phatom.d.ts", "phantom-tests.ts"], + "files": ["index.d.ts", "phantom-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/physijs/tests/body.ts b/physijs/tests/body.ts index 649805c035..48de34a5a9 100644 --- a/physijs/tests/body.ts +++ b/physijs/tests/body.ts @@ -1,6 +1,6 @@ /// /// -/// +/// Physijs.scripts.worker = '../physijs_worker.js'; Physijs.scripts.ammo = 'examples/js/ammo.js'; diff --git a/physijs/tests/constraints_car.ts b/physijs/tests/constraints_car.ts index 4202b0c041..19975bf0c3 100644 --- a/physijs/tests/constraints_car.ts +++ b/physijs/tests/constraints_car.ts @@ -1,6 +1,6 @@ /// /// -/// +/// Physijs.scripts.worker = '../physijs_worker.js'; Physijs.scripts.ammo = 'examples/js/ammo.js'; diff --git a/physijs/tests/jenga.ts b/physijs/tests/jenga.ts index 77b9c6cd6a..b60eddeb53 100644 --- a/physijs/tests/jenga.ts +++ b/physijs/tests/jenga.ts @@ -1,6 +1,6 @@ /// /// -/// +/// Physijs.scripts.worker = '../physijs_worker.js'; Physijs.scripts.ammo = 'examples/js/ammo.js'; diff --git a/physijs/tests/vehicle.ts b/physijs/tests/vehicle.ts index ef064f0387..3e16745af3 100644 --- a/physijs/tests/vehicle.ts +++ b/physijs/tests/vehicle.ts @@ -1,6 +1,6 @@ /// /// -/// +/// var TWEEN: any; var SimplexNoise: any; diff --git a/physijs/tsconfig.json b/physijs/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/physijs/tsconfig.json +++ b/physijs/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/pouchDB/pouch.d.ts b/pouchDB/pouch.d.ts index 0360e02b65..7640aedbb0 100644 --- a/pouchDB/pouch.d.ts +++ b/pouchDB/pouch.d.ts @@ -178,7 +178,7 @@ interface PouchRevsDiffOptions { interface PouchReplicateOptions { continuous?: boolean; - onChange?: (any) => void; + onChange?: (a: any) => void; filter?: any; // Can be either string or PouchFilter complete?: (err: PouchError, res: PouchChanges) => void; } @@ -229,4 +229,4 @@ declare module 'pouchdb' { // emit is the function that the PouchFilter.map function should call in order to add a particular item to // a filter view. // -declare function emit(key: any, value: any); +declare function emit(key: any, value: any): any; diff --git a/pouchDB/tsconfig.json b/pouchDB/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/pouchDB/tsconfig.json +++ b/pouchDB/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/promise/promise.d.ts b/promise/index.d.ts similarity index 87% rename from promise/promise.d.ts rename to promise/index.d.ts index b771f67893..3a273d44cd 100644 --- a/promise/promise.d.ts +++ b/promise/index.d.ts @@ -3,16 +3,13 @@ // Definitions by: Manuel Rueda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Support AMD require -declare module 'promise' { - export = Promise; -} +export as namespace Promise; -declare var Promise: Promise.Ipromise; +export = Promise; +declare var Promise: Promise.IPromise; declare namespace Promise { - - export interface Ipromise { + export interface IPromise { new (resolver: (resolve: (value: T) => void, reject: (reason: any) => void) => void): IThenable; resolve: (value: T) => IThenable; diff --git a/promise/promise-tests.ts b/promise/promise-tests.ts index 140d170b1a..7920069e2f 100644 --- a/promise/promise-tests.ts +++ b/promise/promise-tests.ts @@ -1,5 +1,3 @@ -/// - var prom = new Promise((resolve, reject) => { resolve(true); }); diff --git a/promptly/promptly-tests.ts b/promptly/promptly-tests.ts index b18578be53..45007cb13f 100644 --- a/promptly/promptly-tests.ts +++ b/promptly/promptly-tests.ts @@ -1,5 +1,4 @@ /// -/// import promptly = require('promptly'); diff --git a/rangy/rangy-tests.ts b/rangy/rangy-tests.ts index b0c6c1cc27..96579dc07e 100644 --- a/rangy/rangy-tests.ts +++ b/rangy/rangy-tests.ts @@ -6,6 +6,8 @@ declare function assertString(s:string):any; declare function assertRangyRange(r:RangyRange):any; declare function getRangyRange():RangyRange; +type TextRange = any; // ? + function testRangyStatic() { rangy.addInitListener((rangy:RangyStatic) => { }); diff --git a/react-bootstrap-table/react-bootstrap-table-tests.tsx b/react-bootstrap-table/react-bootstrap-table-tests.tsx index 9a22bf9df4..6530db289a 100644 --- a/react-bootstrap-table/react-bootstrap-table-tests.tsx +++ b/react-bootstrap-table/react-bootstrap-table-tests.tsx @@ -1,4 +1,3 @@ -/// /// import * as React from 'react'; diff --git a/react-cropper/react-cropper-tests.tsx b/react-cropper/react-cropper-tests.tsx index 4aef0fbefb..aa46343b36 100644 --- a/react-cropper/react-cropper-tests.tsx +++ b/react-cropper/react-cropper-tests.tsx @@ -1,7 +1,3 @@ -/// -/// - - import * as React from 'react'; import Cropper from 'react-cropper'; // If you choose not to use import, you need to assign Cropper to default diff --git a/react-holder/react-holder-tests.tsx b/react-holder/react-holder-tests.tsx index 9b4f3a9a0a..93b009eaa5 100644 --- a/react-holder/react-holder-tests.tsx +++ b/react-holder/react-holder-tests.tsx @@ -1,8 +1,3 @@ -// react-holder test - -/// -/// - import * as React from "react"; import Holder from "react-holder"; diff --git a/react-holder/tsconfig.json b/react-holder/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-holder/tsconfig.json +++ b/react-holder/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/react-input-calendar/tsconfig.json b/react-input-calendar/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-input-calendar/tsconfig.json +++ b/react-input-calendar/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/react-motion/react-motion-tests.tsx b/react-motion/react-motion-tests.tsx index 0ff53dae4a..27698b0d97 100644 --- a/react-motion/react-motion-tests.tsx +++ b/react-motion/react-motion-tests.tsx @@ -1,11 +1,6 @@ - -/// -/// - import * as React from 'react'; import {Motion, spring} from 'react-motion'; - class Root extends React.Component<{}, {}> { render() { return ( diff --git a/react-motion/tsconfig.json b/react-motion/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-motion/tsconfig.json +++ b/react-motion/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/react-props-decorators/tsconfig.json b/react-props-decorators/tsconfig.json index effc71d799..cf91544f8f 100644 --- a/react-props-decorators/tsconfig.json +++ b/react-props-decorators/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/react-redux/index.d.ts b/react-redux/index.d.ts index c4496d3b4b..2b6e8beed3 100644 --- a/react-redux/index.d.ts +++ b/react-redux/index.d.ts @@ -6,7 +6,6 @@ /// /// - import { ComponentClass, Component, StatelessComponent, ReactNode } from 'react'; import { Store, Dispatch, ActionCreator } from 'redux'; diff --git a/react-redux/react-redux-tests.tsx b/react-redux/react-redux-tests.tsx index 42656b8eca..dac4999425 100644 --- a/react-redux/react-redux-tests.tsx +++ b/react-redux/react-redux-tests.tsx @@ -1,4 +1,3 @@ - /// /// /// diff --git a/react-redux/tsconfig.json b/react-redux/tsconfig.json index 9a9976d457..a46fdac473 100644 --- a/react-redux/tsconfig.json +++ b/react-redux/tsconfig.json @@ -1,10 +1,12 @@ { + "files": ["index.d.ts", "react-redux-tests.tsx"], "compilerOptions": { "module": "commonjs", "target": "es6", "noImplicitAny": true, "strictNullChecks": false, "baseUrl": "../", - "jsx": "react" + "jsx": "react", + "experimentalDecorators": true } } \ No newline at end of file diff --git a/react-router-redux/tsconfig.json b/react-router-redux/tsconfig.json index effc71d799..0634316ec3 100644 --- a/react-router-redux/tsconfig.json +++ b/react-router-redux/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["react-router-redux.d.ts", "react-router-redux-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/react-scroll/tsconfig.json b/react-scroll/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-scroll/tsconfig.json +++ b/react-scroll/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/react-spinkit/tsconfig.json b/react-spinkit/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-spinkit/tsconfig.json +++ b/react-spinkit/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-debounced/redux-debounced-tests.ts b/redux-debounced/redux-debounced-tests.ts index 3b11de0721..a4ad2d6a14 100644 --- a/redux-debounced/redux-debounced-tests.ts +++ b/redux-debounced/redux-debounced-tests.ts @@ -1,5 +1,4 @@ /// -/// import { applyMiddleware } from 'redux'; import createDebounce from 'redux-debounced'; diff --git a/redux-devtools-dock-monitor/index.d.ts b/redux-devtools-dock-monitor/index.d.ts index 43308a6143..113969d1af 100644 --- a/redux-devtools-dock-monitor/index.d.ts +++ b/redux-devtools-dock-monitor/index.d.ts @@ -5,7 +5,6 @@ /// - import * as React from 'react' interface IDockMonitorProps { @@ -55,4 +54,4 @@ interface IDockMonitorProps { defaultIsVisible?: boolean } -export declare default class DockMonitor extends React.Component { } +export default class DockMonitor extends React.Component { } diff --git a/redux-devtools/redux-devtools-tests.tsx b/redux-devtools/redux-devtools-tests.tsx index 7b3f9cb5ad..36602c1cff 100644 --- a/redux-devtools/redux-devtools-tests.tsx +++ b/redux-devtools/redux-devtools-tests.tsx @@ -1,8 +1,6 @@ /// /// -/// - import * as React from 'react' import { createStore, applyMiddleware, compose } from 'redux' import { Provider } from 'react-redux' diff --git a/ref-array/index.d.ts b/ref-array/index.d.ts index c5d8744e15..bea61616fc 100644 --- a/ref-array/index.d.ts +++ b/ref-array/index.d.ts @@ -3,10 +3,6 @@ // Definitions by: Paul Loyd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - - import ref = require('ref'); interface ArrayType extends ref.Type { diff --git a/request-ip/index.d.ts b/request-ip/index.d.ts index 777b547e07..041c39b34a 100644 --- a/request-ip/index.d.ts +++ b/request-ip/index.d.ts @@ -3,7 +3,6 @@ // Definitions by: Adam Babcock // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - interface Request { headers: { 'x-client-ip'?: string; diff --git a/request-ip/request-ip-tests.ts b/request-ip/request-ip-tests.ts index 28e95af8db..d597951c38 100644 --- a/request-ip/request-ip-tests.ts +++ b/request-ip/request-ip-tests.ts @@ -1,5 +1,3 @@ - - import express = require('express'); import requestIp = require('request-ip'); diff --git a/yargs/index.d.ts b/yargs/index.d.ts index 1182a8173f..cbcccb23b3 100644 --- a/yargs/index.d.ts +++ b/yargs/index.d.ts @@ -3,8 +3,6 @@ // Definitions by: Martin Poelstra // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - declare namespace yargs { interface Argv { argv: any; diff --git a/yargs/yargs-tests.ts b/yargs/yargs-tests.ts index 9d569ecfcd..732a6dfe8e 100644 --- a/yargs/yargs-tests.ts +++ b/yargs/yargs-tests.ts @@ -3,7 +3,6 @@ // Definitions by: Martin Poelstra // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - import yargs = require('yargs'); // Examples taken from yargs website