diff --git a/OpenJsCad/openjscad.d.ts b/OpenJsCad/openjscad.d.ts index 177f4a3aae..236c1fa62d 100644 --- a/OpenJsCad/openjscad.d.ts +++ b/OpenJsCad/openjscad.d.ts @@ -3,6 +3,8 @@ // Definitions by: Dan Marshall // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + declare namespace THREE { var CSG: { fromCSG: (csg: CSG, defaultColor: any) => { diff --git a/devextreme/tsconfig.json b/devextreme/tsconfig.json index effc71d799..3134eabe36 100644 --- a/devextreme/tsconfig.json +++ b/devextreme/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["devextreme.d.ts", "devextreme-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/jake/tsconfig.json b/jake/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jake/tsconfig.json +++ b/jake/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/jsdeferred/tsconfig.json b/jsdeferred/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/jsdeferred/tsconfig.json +++ b/jsdeferred/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/json-stable-stringify/json-stable-stringify-tests.ts b/json-stable-stringify/json-stable-stringify-tests.ts index f28fb88e66..dfd2ced587 100644 --- a/json-stable-stringify/json-stable-stringify-tests.ts +++ b/json-stable-stringify/json-stable-stringify-tests.ts @@ -1,5 +1,3 @@ -/// - import stringify = require('json-stable-stringify'); var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; diff --git a/jsoneditoronline/jsoneditoronline-tests.ts b/jsoneditoronline/jsoneditoronline-tests.ts index e390fc6a79..a011aa20c7 100644 --- a/jsoneditoronline/jsoneditoronline-tests.ts +++ b/jsoneditoronline/jsoneditoronline-tests.ts @@ -10,7 +10,7 @@ var editor:JSONEditor = new JSONEditor(container, options); var json = { "Array": [1, 2, 3], "Boolean": true, - "Null": null, + "Null": null, "Number": 123, "Object": {"a": "b", "c": "d"}, "String": "Hello World" @@ -28,7 +28,7 @@ var formatter: JSONFormatter = new JSONFormatter(container, options); var json2 = { "Array": [1, 2, 3], "Boolean": true, - "Null": null, + "Null": null, "Number": 123, "Object": {"a": "b", "c": "d"}, "String": "Hello World" diff --git a/jsplumb/jquery.jsPlumb.d.ts b/jsplumb/jquery.jsPlumb.d.ts index ab69dda1de..f50d17b558 100644 --- a/jsplumb/jquery.jsPlumb.d.ts +++ b/jsplumb/jquery.jsPlumb.d.ts @@ -9,7 +9,7 @@ declare var jsPlumb: jsPlumbInstance; interface jsPlumbInstance { setRenderMode(renderMode: string): string; - bind(event: string, callback: (e) => void ): void; + bind(event: string, callback: (e: any) => void ): void; unbind(event?: string): void; ready(callback: () => void): void; importDefaults(defaults: Defaults): void; diff --git a/jssha/tsconfig.json b/jssha/tsconfig.json index effc71d799..73e54445e2 100644 --- a/jssha/tsconfig.json +++ b/jssha/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["jssha.d.ts", "jssha-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/jsx-chai/jsx-chai-tests.ts b/jsx-chai/jsx-chai-tests.ts index be9aeef58d..002b8f2000 100644 --- a/jsx-chai/jsx-chai-tests.ts +++ b/jsx-chai/jsx-chai-tests.ts @@ -1,5 +1,4 @@ /// -/// import chai = require('chai'); import jsxChai = require('jsx-chai'); diff --git a/katex/katex.d.ts b/katex/index.d.ts similarity index 73% rename from katex/katex.d.ts rename to katex/index.d.ts index 601624eddd..db3c0999d1 100644 --- a/katex/katex.d.ts +++ b/katex/index.d.ts @@ -3,14 +3,15 @@ // Definitions by: Michael Randolph // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export as namespace katex; -interface KatexOptions { +export interface KatexOptions { displayMode?: boolean; breakOnUnsupportedCmds?: boolean; errorColor?: string; } -declare class ParseError implements Error { +export class ParseError implements Error { constructor(message: string, lexer: any, position: number); name: string; message: string; @@ -23,10 +24,10 @@ declare class ParseError implements Error { * @param element The DOM element to render into * @param options KaTeX options */ -declare function render(tex: string, element: HTMLElement, options?: KatexOptions): void; +export function render(tex: string, element: HTMLElement, options?: KatexOptions): void; /** * Renders a TeX expression into an HTML string * @param tex A TeX expression * @param options KaTeX options */ -declare function renderToString(tex: string, options?: KatexOptions): string; +export function renderToString(tex: string, options?: KatexOptions): string; diff --git a/katex/katex-tests.ts b/katex/katex-tests.ts index 9829fcddf7..77e745d6a0 100644 --- a/katex/katex-tests.ts +++ b/katex/katex-tests.ts @@ -1,5 +1,3 @@ -/// - import katexLib = require('katex'); class KatexTest { diff --git a/knockback/tsconfig.json b/knockback/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/knockback/tsconfig.json +++ b/knockback/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/knockout/tests/tsconfig.json b/knockout/tests/tsconfig.json index 19e19d490d..21a2a8931b 100644 --- a/knockout/tests/tsconfig.json +++ b/knockout/tests/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../" } diff --git a/kolite/tsconfig.json b/kolite/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/kolite/tsconfig.json +++ b/kolite/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/kue/index.d.ts b/kue/index.d.ts index 7c7416c603..43334b114f 100644 --- a/kue/index.d.ts +++ b/kue/index.d.ts @@ -7,7 +7,7 @@ import events = require('events'); import express = require('express'); -import redis = require('redis'); +export import redis = require('redis'); export declare class Queue extends events.EventEmitter { name: string; @@ -139,7 +139,6 @@ interface TestMode { } export declare var app: express.Application; -export declare var redis: Redis; export declare var workers: Worker[]; export declare function createQueue(options?: Object): Queue; diff --git a/lazypipe/lazypipe-tests.ts b/lazypipe/lazypipe-tests.ts index 5eb3558cc8..4fa129690d 100644 --- a/lazypipe/lazypipe-tests.ts +++ b/lazypipe/lazypipe-tests.ts @@ -1,8 +1,3 @@ - -/// - -/// - import * as gulp from "gulp"; import minifyHtml = require("gulp-minify-html"); import size = require("gulp-size"); diff --git a/leapmotionTS/LeapMotionTS-tests.ts b/leapmotionTS/LeapMotionTS-tests.ts index ac392941ef..50f9f895c0 100644 --- a/leapmotionTS/LeapMotionTS-tests.ts +++ b/leapmotionTS/LeapMotionTS-tests.ts @@ -1,4 +1,4 @@ -import Leap = require('./LeapMotionTS'); +import Leap = require('LeapMotionTS'); var controller: Leap.Controller = new Leap.Controller(); controller.addEventListener(Leap.LeapEvent.LEAPMOTION_FRAME, (event: Leap.LeapEvent) => { diff --git a/levelup/levelup-tests.ts b/levelup/levelup-tests.ts index d88f48cf37..354c96ccd2 100644 --- a/levelup/levelup-tests.ts +++ b/levelup/levelup-tests.ts @@ -46,10 +46,10 @@ db.batch() var open:boolean = db.isOpen(); var closed:boolean = db.isClosed(); db.createReadStream() - .on('data', function (data) { + .on('data', function (data: any) { console.log(data.key, '=', data.value) }) - .on('error', function (err) { + .on('error', function (err: any) { console.log('Oh my!', err) }) .on('close', function () { diff --git a/linq/tsconfig.json b/linq/tsconfig.json index effc71d799..3a7fbb4a91 100644 --- a/linq/tsconfig.json +++ b/linq/tsconfig.json @@ -1,8 +1,9 @@ { + "files": ["linq.d.ts", "linq-tests.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/lodash-decorators/tsconfig.json b/lodash-decorators/tsconfig.json index effc71d799..01ed952cc8 100644 --- a/lodash-decorators/tsconfig.json +++ b/lodash-decorators/tsconfig.json @@ -4,6 +4,7 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "exprimentalDecorators": true } } \ No newline at end of file diff --git a/lodash/tsconfig.json b/lodash/tsconfig.json index effc71d799..71362aab75 100644 --- a/lodash/tsconfig.json +++ b/lodash/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["lodash.d.ts", "lodash-tests.d.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/loggly/loggly.d.ts b/loggly/index.d.ts similarity index 82% rename from loggly/loggly.d.ts rename to loggly/index.d.ts index ec10031ae4..2c44a2d6f0 100644 --- a/loggly/loggly.d.ts +++ b/loggly/index.d.ts @@ -3,8 +3,7 @@ // Definitions by: Ray Martone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface LogglyOptions { +export interface LogglyOptions { token: string; subdomain: string; tags?: string[]; @@ -16,9 +15,9 @@ interface LogglyOptions { } } -interface Loggly { +export interface Loggly { log(message: any, tags?: string[], callback?: (err: any, results: any) => void): void; log(message: any, callback?: (err: any, results: any) => void): void; } -declare function createClient(options: LogglyOptions): Loggly; +export function createClient(options: LogglyOptions): Loggly; diff --git a/loggly/loggly-tests.ts b/loggly/loggly-tests.ts index bf022999fb..b621aef18e 100644 --- a/loggly/loggly-tests.ts +++ b/loggly/loggly-tests.ts @@ -1,4 +1,3 @@ -/// import loggly = require("loggly"); var options: loggly.LogglyOptions = { diff --git a/lwip/lwip.d.ts b/lwip/index.d.ts similarity index 97% rename from lwip/lwip.d.ts rename to lwip/index.d.ts index eef732d734..4443540707 100644 --- a/lwip/lwip.d.ts +++ b/lwip/index.d.ts @@ -5,15 +5,14 @@ /// +export type ColorObject = { r: number, g: number, b: number, a?: number }; +export type Color = string | [number, number, number, number] | ColorObject; -type ColorObject = { r: number, g: number, b: number, a?: number }; -type Color = string | [number, number, number, number] | ColorObject; - -interface ImageCallback { +export interface ImageCallback { (err: any, image: Image): void; } -interface BufferCallback { +export interface BufferCallback { (err: any, buffer: Buffer): void; } @@ -21,28 +20,28 @@ interface BufferCallback { * Open an image * @param source The path to the image on disk. */ -declare function open(source: string, callback: ImageCallback): void; +export function open(source: string, callback: ImageCallback): void; /** * Open an image * @param source The path to the image on disk. * @param type Optional type of the image. If omitted, the type will be inferred from the file extension. Type must be a string of the image type (i.e. "jpg"). */ -declare function open(source: string, type: string, callback: ImageCallback): void; +export function open(source: string, type: string, callback: ImageCallback): void; /** * Open an image * @param source The path to the image on disk or an image buffer. * @param type Type of the image. If source is an encoded image buffer, type must be a string of the image type (i.e. "jpg"). If source is a raw pixels buffer type must be an object with type.width and type.height properties. */ -declare function open(source: Buffer, type: string | { width: number, height: number }, callback: ImageCallback): any; +export function open(source: Buffer, type: string | { width: number, height: number }, callback: ImageCallback): any; /** * Create a new image * @param width The width of the new image. * @param height The height of the new image. */ -declare function create(width: number, height: number, callback: ImageCallback): void; +export function create(width: number, height: number, callback: ImageCallback): void; /** * Create a new image @@ -50,26 +49,26 @@ declare function create(width: number, height: number, callback: ImageCallback): * @param height The height of the new image. * @param color Optional Color of the canvas. */ -declare function create(width: number, height: number, color: Color, callback: ImageCallback): void; +export function create(width: number, height: number, color: Color, callback: ImageCallback): void; -type JpegBufferParams = { +export type JpegBufferParams = { quality?: number; }; -type PngBufferParams = { +export type PngBufferParams = { compression?: string; interlaced?: boolean; transparency?: boolean | string; }; -type GifBufferParams = { +export type GifBufferParams = { colors?: number; interlaced?: boolean; transparency?: boolean | string; threshold: number; } -interface Image { +export interface Image { // Image operations /** @@ -555,7 +554,7 @@ interface Image { batch(): Batch; } -interface Batch { +export interface Batch { // Using a batch object /** diff --git a/lwip/lwip-tests.ts b/lwip/lwip-tests.ts index 4fca563819..028551d6fa 100644 --- a/lwip/lwip-tests.ts +++ b/lwip/lwip-tests.ts @@ -1,5 +1,3 @@ -/// - import * as lwip from 'lwip'; lwip.open('lena.jpg', function(err, image) { diff --git a/mailparser/tsconfig.json b/mailparser/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/mailparser/tsconfig.json +++ b/mailparser/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/material-ui/legacy/tsconfig.json b/material-ui/legacy/tsconfig.json index 1ecf1c760c..a9786b2d49 100644 --- a/material-ui/legacy/tsconfig.json +++ b/material-ui/legacy/tsconfig.json @@ -5,6 +5,7 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../../" + "baseUrl": "../../", + "jsx": "react" } } \ No newline at end of file diff --git a/material-ui/material-ui.d.ts b/material-ui/material-ui.d.ts index bdb7093265..69247b8e51 100644 --- a/material-ui/material-ui.d.ts +++ b/material-ui/material-ui.d.ts @@ -83,9 +83,9 @@ declare module "material-ui" { import NavigationChevronRight = __MaterialUI.SvgIcon; // require('material-ui/lib/svg-icon/navigation/chevron-right'); export const Icons: { - NavigationMenu: NavigationMenu, - NavigationChevronLeft: NavigationChevronLeft, - NavigationChevronRight: NavigationChevronRight, + NavigationMenu: typeof NavigationMenu, + NavigationChevronLeft: typeof NavigationChevronLeft, + NavigationChevronRight: typeof NavigationChevronRight, }; // export type definitions diff --git a/material-ui/tsconfig.json b/material-ui/tsconfig.json index b564fb3c46..b0d306f999 100644 --- a/material-ui/tsconfig.json +++ b/material-ui/tsconfig.json @@ -3,8 +3,10 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react", + "experimentalDecorators": true } } \ No newline at end of file diff --git a/mobservable-react/mobservable-react-tests.ts b/mobservable-react/mobservable-react-tests.ts index 1bf2b49c6d..519f451fe4 100644 --- a/mobservable-react/mobservable-react-tests.ts +++ b/mobservable-react/mobservable-react-tests.ts @@ -1,4 +1,3 @@ -/// /// import {reactiveComponent} from 'mobservable-react'; diff --git a/mobservable-react/tsconfig.json b/mobservable-react/tsconfig.json index effc71d799..cf91544f8f 100644 --- a/mobservable-react/tsconfig.json +++ b/mobservable-react/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/mobservable/tsconfig.json b/mobservable/tsconfig.json index effc71d799..cf91544f8f 100644 --- a/mobservable/tsconfig.json +++ b/mobservable/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/moment-range/index.d.ts b/moment-range/index.d.ts index 91df4e82ed..96081d4b14 100644 --- a/moment-range/index.d.ts +++ b/moment-range/index.d.ts @@ -9,7 +9,7 @@ export as namespace moment; export = moment; declare namespace moment { - interface Range { + export interface Range { start: Moment; end: Moment; @@ -44,6 +44,8 @@ declare namespace moment { } declare module '../moment' { + import Range = moment.Range; + interface Moment { within (x: moment.Range): boolean; } diff --git a/moment-range/moment-range-tests.ts b/moment-range/moment-range-tests.ts index 83a8e7f4ee..21949aac1c 100644 --- a/moment-range/moment-range-tests.ts +++ b/moment-range/moment-range-tests.ts @@ -1,4 +1,4 @@ -/// +import * as moment from 'moment'; var range: moment.Range = moment.range(new Date(2012, 0, 15), new Date(2012, 4, 23)); var range2: moment.Range = moment.range(moment("2011-04-15", "YYYY-MM-DD"), moment("2011-11-27", "YYYY-MM-DD")); diff --git a/noVNC/tsconfig.json b/noVNC/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/noVNC/tsconfig.json +++ b/noVNC/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/node-schedule/node-schedule-tests.ts b/node-schedule/node-schedule-tests.ts index bc4dbbd743..d1533dbf04 100644 --- a/node-schedule/node-schedule-tests.ts +++ b/node-schedule/node-schedule-tests.ts @@ -1,5 +1,3 @@ -/// - import nodeSchedule = require("node-schedule"); /** diff --git a/nodemailer/index.d.ts b/nodemailer/index.d.ts index 21d6dc44f3..c0b7999a41 100644 --- a/nodemailer/index.d.ts +++ b/nodemailer/index.d.ts @@ -6,10 +6,6 @@ /// /// -/// - - - import directTransport = require("nodemailer-direct-transport"); import smtpTransport = require("nodemailer-smtp-transport"); diff --git a/nvd3/tsconfig.json b/nvd3/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/nvd3/tsconfig.json +++ b/nvd3/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/nw.gui/node-webkit-tests.ts b/nw.gui/node-webkit-tests.ts index ba53c3fc4f..349b2d190b 100644 --- a/nw.gui/node-webkit-tests.ts +++ b/nw.gui/node-webkit-tests.ts @@ -1,5 +1,4 @@ /// -/// // Load native UI library // See docs: https://github.com/rogerwang/node-webkit/wiki/Shell @@ -8,198 +7,198 @@ import gui = require("nw.gui"); /* WINDOW */ - // Get the current window - var win = gui.Window.get(); +// Get the current window +var win = gui.Window.get(); - // Listen to the minimize event - win.on('minimize', function() { - console.log('Window is minimized'); - }); +// Listen to the minimize event +win.on('minimize', function() { + console.log('Window is minimized'); +}); - // Minimize the window - win.minimize(); +// Minimize the window +win.minimize(); - // Unlisten the minimize event - win.removeAllListeners('minimize'); +// Unlisten the minimize event +win.removeAllListeners('minimize'); - // Create a new window and get it - var new_win = gui.Window.get( - window.open('https://github.com') - ); +// Create a new window and get it +var new_win = gui.Window.get( + window.open('https://github.com') +); - // And listen to new window's focus event - new_win.on('focus', function() { - console.log('New window is focused'); - }); +// And listen to new window's focus event +new_win.on('focus', function() { + console.log('New window is focused'); +}); - // Get the current window - var win = gui.Window.get(); +// Get the current window +var win = gui.Window.get(); - // Create a new window and get it - var new_win = gui.Window.get( - window.open('https://github.com') - ); +// Create a new window and get it +var new_win = gui.Window.get( + window.open('https://github.com') +); - // png as base64string - win.capturePage(function(base64string:string){ - // do something with the base64string - }, { format : 'png', datatype : 'raw'} ); +// png as base64string +win.capturePage(function(base64string: string) { + // do something with the base64string +}, { format: 'png', datatype: 'raw' }); - // png as node buffer - win.capturePage(function(buffer:Buffer){ - // do something with the buffer - }, { format : 'png', datatype : 'buffer'} ); +// png as node buffer +win.capturePage(function(buffer: Buffer) { + // do something with the buffer +}, { format: 'png', datatype: 'buffer' }); - // Open a new window. - var win = gui.Window.get( - window.open('popup.html') - ); +// Open a new window. +var win = gui.Window.get( + window.open('popup.html') +); - // Release the 'win' object here after the new window is closed. - win.on('closed', function() { - win = null; - }); +// Release the 'win' object here after the new window is closed. +win.on('closed', function() { + win = null; +}); - // Listen to main window's close event - gui.Window.get().on('close', function() { - // Hide the window to give user the feeling of closing immediately - this.hide(); +// Listen to main window's close event +gui.Window.get().on('close', function() { + // Hide the window to give user the feeling of closing immediately + this.hide(); - // If the new window is still open then close it. - if (win != null) - win.close(true); + // If the new window is still open then close it. + if (win != null) + win.close(true); - // After closing the new window, close the main window. - this.close(true); - }); + // After closing the new window, close the main window. + this.close(true); +}); /* MENU */ - // Create an empty menu - var menu = new gui.Menu(); +// Create an empty menu +var menu = new gui.Menu(); - // Add some items - menu.append(new gui.MenuItem({ label: 'Item A' })); - menu.append(new gui.MenuItem({ label: 'Item B' })); - menu.append(new gui.MenuItem({ type: 'separator' })); - menu.append(new gui.MenuItem({ label: 'Item C' })); +// Add some items +menu.append(new gui.MenuItem({ label: 'Item A' })); +menu.append(new gui.MenuItem({ label: 'Item B' })); +menu.append(new gui.MenuItem({ type: 'separator' })); +menu.append(new gui.MenuItem({ label: 'Item C' })); - // Remove one item - menu.removeAt(1); +// Remove one item +menu.removeAt(1); - // Popup as context menu - menu.popup(10, 10); +// Popup as context menu +menu.popup(10, 10); - // Iterate menu's items - for (var i = 0; i < menu.items.length; ++i) { - console.log(menu.items[i]); - } +// Iterate menu's items +for (var i = 0; i < menu.items.length; ++i) { + console.log(menu.items[i]); +} - var win = gui.Window.get(); - var nativeMenuBar = new gui.Menu({ type: "menubar" }); - nativeMenuBar.createMacBuiltin("My App"); - win.menu = nativeMenuBar; +var win = gui.Window.get(); +var nativeMenuBar = new gui.Menu({ type: "menubar" }); +nativeMenuBar.createMacBuiltin("My App"); +win.menu = nativeMenuBar; - nativeMenuBar.createMacBuiltin("My App", { - hideEdit: true, - hideWindow: true - }); +nativeMenuBar.createMacBuiltin("My App", { + hideEdit: true, + hideWindow: true +}); /* MENU ITEM */ - var itemc:gui.MenuItem; +var itemc: gui.MenuItem; - // Create a separator - itemc = new gui.MenuItem({ type: 'separator' }); +// Create a separator +itemc = new gui.MenuItem({ type: 'separator' }); - // Create a normal item with label and icon - itemc = new gui.MenuItem({ - type: "normal", - label: "I'm a menu item", - icon: "img/icon.png" - }); +// Create a normal item with label and icon +itemc = new gui.MenuItem({ + type: "normal", + label: "I'm a menu item", + icon: "img/icon.png" +}); - // Or you can omit the 'type' field for normal items - itemc = new gui.MenuItem({ label: 'Simple item' }); +// Or you can omit the 'type' field for normal items +itemc = new gui.MenuItem({ label: 'Simple item' }); - // Bind a callback to item - itemc = new gui.MenuItem({ - label: "Click me", - click: function() { - console.log("I'm clicked"); - }, - key: "s", - modifiers: "ctrl-alt", - }); +// Bind a callback to item +itemc = new gui.MenuItem({ + label: "Click me", + click: function() { + console.log("I'm clicked"); + }, + key: "s", + modifiers: "ctrl-alt", +}); - // You can have submenu! - var submenu = new gui.Menu(); - submenu.append(new gui.MenuItem({ label: 'Item 1' })); - submenu.append(new gui.MenuItem({ label: 'Item 2' })); - submenu.append(new gui.MenuItem({ label: 'Item 3' })); - itemc.submenu = submenu; +// You can have submenu! +var submenu = new gui.Menu(); +submenu.append(new gui.MenuItem({ label: 'Item 1' })); +submenu.append(new gui.MenuItem({ label: 'Item 2' })); +submenu.append(new gui.MenuItem({ label: 'Item 3' })); +itemc.submenu = submenu; - // And everything can be changed at runtime - itemc.label = 'New label'; - itemc.click = function() { console.log('New click callback'); }; +// And everything can be changed at runtime +itemc.label = 'New label'; +itemc.click = function() { console.log('New click callback'); }; /* APP */ - // Print arguments - console.log(gui.App.argv); +// Print arguments +console.log(gui.App.argv); - // Quit current app - gui.App.quit(); +// Quit current app +gui.App.quit(); - // Get the name field in manifest - gui.App.manifest.name +// Get the name field in manifest +gui.App.manifest.name - gui.App.addOriginAccessWhitelistEntry('http://github.com/', 'app', 'myapp', true); +gui.App.addOriginAccessWhitelistEntry('http://github.com/', 'app', 'myapp', true); /* CLIPBOARD */ - // We can not create a clipboard, we have to receive the system clipboard - var clipboard = gui.Clipboard.get(); +// We can not create a clipboard, we have to receive the system clipboard +var clipboard = gui.Clipboard.get(); - // Read from clipboard - var text = clipboard.get('text'); - console.log(text); +// Read from clipboard +var text = clipboard.get('text'); +console.log(text); - // Or write something - clipboard.set('I love node-webkit :)', 'text'); +// Or write something +clipboard.set('I love node-webkit :)', 'text'); - // And clear it! - clipboard.clear(); +// And clear it! +clipboard.clear(); /* TRAY */ - // Create a tray icon - var tray = new gui.Tray({ title: 'Tray', icon: 'img/icon.png' }); +// Create a tray icon +var tray = new gui.Tray({ title: 'Tray', icon: 'img/icon.png' }); - // Give it a menu - var menu = new gui.Menu(); - menu.append(new gui.MenuItem({ type: 'checkbox', label: 'box1' })); - tray.menu = menu; +// Give it a menu +var menu = new gui.Menu(); +menu.append(new gui.MenuItem({ type: 'checkbox', label: 'box1' })); +tray.menu = menu; - // Remove the tray - tray.remove(); - tray = null; +// Remove the tray +tray.remove(); +tray = null; /* SHELL */ - // Open URL with default browser. - gui.Shell.openExternal('https://github.com/rogerwang/node-webkit'); +// Open URL with default browser. +gui.Shell.openExternal('https://github.com/rogerwang/node-webkit'); - // Open a text file with default text editor. - gui.Shell.openItem('test.txt'); +// Open a text file with default text editor. +gui.Shell.openItem('test.txt'); - // Open a file in file explorer. - gui.Shell.showItemInFolder('test.txt'); \ No newline at end of file +// Open a file in file explorer. +gui.Shell.showItemInFolder('test.txt'); \ No newline at end of file diff --git a/on-headers/on-headers-tests.ts b/on-headers/on-headers-tests.ts index 11f33c4ef0..3776ab2ba2 100644 --- a/on-headers/on-headers-tests.ts +++ b/on-headers/on-headers-tests.ts @@ -1,6 +1,4 @@ -/// - -import http = require('http') +import http = require('http') import onHeaders = require('on-headers') http.createServer(onRequest) diff --git a/osmtogeojson/osmtogeojson-tests.ts b/osmtogeojson/osmtogeojson-tests.ts index aad3c9ae3f..429dda705f 100644 --- a/osmtogeojson/osmtogeojson-tests.ts +++ b/osmtogeojson/osmtogeojson-tests.ts @@ -1,6 +1,3 @@ - -/// - import osmtogeojson from 'osmtogeojson'; import {OsmJSON, GeoJSON} from 'osmtogeojson'; import * as xmldom from 'xmldom'; diff --git a/paralleljs/parallel-tests.ts b/paralleljs/parallel-tests.ts index e0c9cb7a80..9be05ded16 100644 --- a/paralleljs/parallel-tests.ts +++ b/paralleljs/parallel-tests.ts @@ -35,7 +35,7 @@ p3.map(fib).then(log); var p4 = new Parallel([0, 1, 2, 3, 4, 5, 6, 7, 8]); function add(d: number[]) { return d[0] + d[1]; } -function factorial(n: number) { return n < 2 ? 1 : n * factorial(n - 1); } +function factorial(n: number): number { return n < 2 ? 1 : n * factorial(n - 1); } p4.require(factorial); @@ -44,7 +44,7 @@ p4.map(function (n: number) { return Math.pow(10, n); }).reduce(add).then(log); var p5 = new Parallel([1, 2, 3]); -function dbl(n) { return n * 2; } +function dbl(n: number) { return n * 2; } p5.map(dbl).map(dbl).map(dbl).then(function (data) { console.log(data); // logs [8, 16, 24] diff --git a/path-parse/path-parse-tests.ts b/path-parse/path-parse-tests.ts index 05c583ca31..da2b63f6b4 100644 --- a/path-parse/path-parse-tests.ts +++ b/path-parse/path-parse-tests.ts @@ -1,5 +1,3 @@ -/// - import * as parse from "path-parse"; const parsed = parse("/foo/bar.img"); diff --git a/persona/persona.d.ts b/persona/persona.d.ts index 3d27487892..8c49f80e43 100644 --- a/persona/persona.d.ts +++ b/persona/persona.d.ts @@ -6,42 +6,42 @@ declare namespace Persona { export interface WatchOptions { - loggedInUser: String - onlogin: (String) => void - onlogout: () => void - onready?: () => void + loggedInUser: string; + onlogin: (s: string) => void; + onlogout: () => void; + onready?: () => void; } export interface RequestOptions { - backgroundColor?: String - siteName?: String - siteLogo?: String - termsOfService?: String - privacyPolicy?: String - returnTo?: String - oncancel?: () => void + backgroundColor?: string; + siteName?: string; + siteLogo?: string; + termsOfService?: string; + privacyPolicy?: string; + returnTo?: string; + oncancel?: () => void; } export interface GetOptions { - backgroundColor?: String - siteName?: String - siteLogo?: String - termsOfService?: String - privacyPolicy?: String + backgroundColor?: string; + siteName?: string; + siteLogo?: string; + termsOfService?: string; + privacyPolicy?: string; } export interface Persona { - watch( options: WatchOptions ): void - request( options: RequestOptions ): void - request(): void - logout(): void - get( gotAssertion: (String) => void ): void - get( gotAssertion: (String) => void, options: GetOptions ): void + watch(options: WatchOptions): void; + request(options: RequestOptions): void; + request(): void; + logout(): void; + get(gotAssertion: (s: string) => void): void; + get(gotAssertion: (s: string) => void, options: GetOptions): void; } } interface Navigator { - id: Persona.Persona + id: Persona.Persona; } diff --git a/phantom/tsconfig.json b/phantom/tsconfig.json index effc71d799..eae3671297 100644 --- a/phantom/tsconfig.json +++ b/phantom/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["phatom.d.ts", "phantom-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/phonegap/tsconfig.json b/phonegap/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/phonegap/tsconfig.json +++ b/phonegap/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/physijs/tests/tsconfig.json b/physijs/tests/tsconfig.json index 19e19d490d..21a2a8931b 100644 --- a/physijs/tests/tsconfig.json +++ b/physijs/tests/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../../" } diff --git a/popcorn/tsconfig.json b/popcorn/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/popcorn/tsconfig.json +++ b/popcorn/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/postal/tsconfig.json b/postal/tsconfig.json index effc71d799..f2bcdbc76f 100644 --- a/postal/tsconfig.json +++ b/postal/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["postal.d.ts", "postal-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/power-assert/power-assert-tests.ts b/power-assert/power-assert-tests.ts index 465e73afc0..3651b6d6df 100644 --- a/power-assert/power-assert-tests.ts +++ b/power-assert/power-assert-tests.ts @@ -19,7 +19,7 @@ assert.throws(() => { }, undefined, "DODGED IT"); assert.doesNotThrow(() => { - if (false) { + if (!!false) { throw "a hammer at your face"; } }, undefined, "What the...*crunch*"); @@ -44,7 +44,7 @@ customizedAssert1.throws(() => { }, undefined, "DODGED IT"); customizedAssert1.doesNotThrow(() => { - if (false) { + if (!!false) { throw "a hammer at your face"; } }, undefined, "What the...*crunch*"); diff --git a/progress/progress-tests.ts b/progress/progress-tests.ts index 699c20b057..12774e7183 100644 --- a/progress/progress-tests.ts +++ b/progress/progress-tests.ts @@ -1,8 +1,5 @@ -/// - var ProgressBar = require('progress'); - /** * Usage example from https://github.com/tj/node-progress */ diff --git a/protractor-helpers/protractor-helpers-tests.ts b/protractor-helpers/protractor-helpers-tests.ts index b80c57c537..cf8c6a8be7 100644 --- a/protractor-helpers/protractor-helpers-tests.ts +++ b/protractor-helpers/protractor-helpers-tests.ts @@ -2,6 +2,8 @@ import helpers = require('protractor-helpers'); +declare var $$: any, $: any, by: any, element: any; // ?? + function testElementArrayFinder() { var single1 : protractor.ElementFinder = $$('.foo').getByText('Hello'); diff --git a/pure-render-decorator/pure-render-decorator-tests.ts b/pure-render-decorator/pure-render-decorator-tests.ts index e509fe508b..4598d60b41 100644 --- a/pure-render-decorator/pure-render-decorator-tests.ts +++ b/pure-render-decorator/pure-render-decorator-tests.ts @@ -1,5 +1,3 @@ -/// - import * as PureRender from 'pure-render-decorator'; @PureRender diff --git a/pure-render-decorator/tsconfig.json b/pure-render-decorator/tsconfig.json index effc71d799..cf91544f8f 100644 --- a/pure-render-decorator/tsconfig.json +++ b/pure-render-decorator/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/qunit/tsconfig.json b/qunit/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/qunit/tsconfig.json +++ b/qunit/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/radium/tsconfig.json b/radium/tsconfig.json index effc71d799..59d8b78456 100644 --- a/radium/tsconfig.json +++ b/radium/tsconfig.json @@ -4,6 +4,8 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react", + "experimentalDecorators": true } } \ No newline at end of file diff --git a/raphael/tsconfig.json b/raphael/tsconfig.json index effc71d799..5e684a6e2b 100644 --- a/raphael/tsconfig.json +++ b/raphael/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": false, "baseUrl": "../" } diff --git a/react-bootstrap-table/tsconfig.json b/react-bootstrap-table/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-bootstrap-table/tsconfig.json +++ b/react-bootstrap-table/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-bootstrap/tsconfig.json b/react-bootstrap/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-bootstrap/tsconfig.json +++ b/react-bootstrap/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-cropper/tsconfig.json b/react-cropper/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-cropper/tsconfig.json +++ b/react-cropper/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-datagrid/tsconfig.json b/react-datagrid/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-datagrid/tsconfig.json +++ b/react-datagrid/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-day-picker/tsconfig.json b/react-day-picker/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-day-picker/tsconfig.json +++ b/react-day-picker/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-dropzone/tsconfig.json b/react-dropzone/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-dropzone/tsconfig.json +++ b/react-dropzone/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-fa/react-fa-tests.tsx b/react-fa/react-fa-tests.tsx index 778c6b16ac..39af37cd9a 100644 --- a/react-fa/react-fa-tests.tsx +++ b/react-fa/react-fa-tests.tsx @@ -1,4 +1,3 @@ -/// /// import * as React from "react"; diff --git a/react-fa/tsconfig.json b/react-fa/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-fa/tsconfig.json +++ b/react-fa/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-helmet/tsconfig.json b/react-helmet/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-helmet/tsconfig.json +++ b/react-helmet/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-infinite/tsconfig.json b/react-infinite/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-infinite/tsconfig.json +++ b/react-infinite/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-intl/tsconfig.json b/react-intl/tsconfig.json index effc71d799..6d42f3c27f 100644 --- a/react-intl/tsconfig.json +++ b/react-intl/tsconfig.json @@ -1,9 +1,11 @@ { + "files": ["react-intl.d.ts", "react-intl-tests.ts"], "compilerOptions": { "module": "commonjs", "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react" } } \ No newline at end of file diff --git a/react-mdl/tsconfig.json b/react-mdl/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-mdl/tsconfig.json +++ b/react-mdl/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-mixin/tsconfig.json b/react-mixin/tsconfig.json index effc71d799..59d8b78456 100644 --- a/react-mixin/tsconfig.json +++ b/react-mixin/tsconfig.json @@ -4,6 +4,8 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react", + "experimentalDecorators": true } } \ No newline at end of file diff --git a/react-native/tsconfig.json b/react-native/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-native/tsconfig.json +++ b/react-native/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-redux/tsconfig.json b/react-redux/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-redux/tsconfig.json +++ b/react-redux/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-router-bootstrap/tsconfig.json b/react-router-bootstrap/tsconfig.json index effc71d799..7288534195 100644 --- a/react-router-bootstrap/tsconfig.json +++ b/react-router-bootstrap/tsconfig.json @@ -4,6 +4,7 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "preserve" } } \ No newline at end of file diff --git a/react-router/tsconfig.json b/react-router/tsconfig.json index effc71d799..68447a7d74 100644 --- a/react-router/tsconfig.json +++ b/react-router/tsconfig.json @@ -1,9 +1,11 @@ { + "files": ["react-router.d.ts", "react-router-tests.tsx"], "compilerOptions": { "module": "commonjs", "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react" } } \ No newline at end of file diff --git a/react-select/tsconfig.json b/react-select/tsconfig.json index effc71d799..c72a5a4940 100644 --- a/react-select/tsconfig.json +++ b/react-select/tsconfig.json @@ -1,9 +1,11 @@ { + "files": ["react-select.d.ts", "react-select-tests.tsx"], "compilerOptions": { "module": "commonjs", "target": "es6", "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../" + "baseUrl": "../", + "jsx": "react" } } \ No newline at end of file diff --git a/react-tagcloud/tsconfig.json b/react-tagcloud/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-tagcloud/tsconfig.json +++ b/react-tagcloud/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-tap-event-plugin/react-tap-event-plugin-tests.ts b/react-tap-event-plugin/react-tap-event-plugin-tests.ts index 7c3bc299ab..424222a8f6 100644 --- a/react-tap-event-plugin/react-tap-event-plugin-tests.ts +++ b/react-tap-event-plugin/react-tap-event-plugin-tests.ts @@ -1,5 +1,3 @@ -/// - import * as injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); diff --git a/react-widgets/tsconfig.json b/react-widgets/tsconfig.json index effc71d799..9a9976d457 100644 --- a/react-widgets/tsconfig.json +++ b/react-widgets/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/index.d.ts b/redux-debounced/index.d.ts index d0e2b1f3d5..a3e28ff51a 100644 --- a/redux-debounced/index.d.ts +++ b/redux-debounced/index.d.ts @@ -7,4 +7,4 @@ import { Middleware } from 'redux'; -export declare default function createDebounce(): Middleware; +export default function createDebounce(): Middleware; diff --git a/redux-devtools-dock-monitor/tsconfig.json b/redux-devtools-dock-monitor/tsconfig.json index effc71d799..9a9976d457 100644 --- a/redux-devtools-dock-monitor/tsconfig.json +++ b/redux-devtools-dock-monitor/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-log-monitor/index.d.ts b/redux-devtools-log-monitor/index.d.ts index 8cb819fad4..74fd49f7f0 100644 --- a/redux-devtools-log-monitor/index.d.ts +++ b/redux-devtools-log-monitor/index.d.ts @@ -35,4 +35,4 @@ interface ILogMonitorProps { preserveScrollTop?: boolean } -export declare default class LogMonitor extends React.Component { } +export default class LogMonitor extends React.Component { } diff --git a/redux-devtools-log-monitor/tsconfig.json b/redux-devtools-log-monitor/tsconfig.json index effc71d799..9a9976d457 100644 --- a/redux-devtools-log-monitor/tsconfig.json +++ b/redux-devtools-log-monitor/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/index.d.ts b/redux-devtools/index.d.ts index 9371bfffc1..fe10a18c58 100644 --- a/redux-devtools/index.d.ts +++ b/redux-devtools/index.d.ts @@ -6,16 +6,16 @@ /// -import * as React from 'react' +import * as React from 'react'; interface IDevTools { - new (): JSX.ElementClass - instrument(): Function + new (): JSX.ElementClass; + instrument(): Function; } -export declare function createDevTools(el: React.ReactElement): IDevTools -export declare function persistState(debugSessionKey: string): Function +export declare function createDevTools(el: React.ReactElement): IDevTools; +export declare function persistState(debugSessionKey: string): Function; -declare var factory: { instrument(): Function } +declare var factory: { instrument(): Function }; export default factory; diff --git a/redux-devtools/redux-devtools-2.1.4-tests.tsx b/redux-devtools/redux-devtools-2.1.4-tests.tsx index a57811f16b..85d89cdaa3 100644 --- a/redux-devtools/redux-devtools-2.1.4-tests.tsx +++ b/redux-devtools/redux-devtools-2.1.4-tests.tsx @@ -3,8 +3,8 @@ /// import { compose, createStore, applyMiddleware, Middleware, Reducer } from 'redux'; -import { devTools, persistState } from 'redux-devtools'; -import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; +import { createDevTools as devTools, persistState } from 'redux-devtools'; +import { LogMonitor } from 'redux-devtools-log-monitor'; import * as React from 'react'; import { Component } from 'react'; @@ -19,9 +19,9 @@ const finalCreateStore = compose( // Enables your middleware: applyMiddleware(m1, m2, m3), // any Redux middleware, e.g. redux-thunk // Provides support for DevTools: - devTools(), + devTools(null), // Lets you write ?debug_session= in address bar to persist debug sessions - persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/)) + persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/)[0]) )(createStore); const store = finalCreateStore(reducer); @@ -32,9 +32,6 @@ class Root extends Component { {() => } - - - ); } @@ -51,11 +48,6 @@ class App extends Component { {() => } - - - ); } diff --git a/redux-devtools/tsconfig.json b/redux-devtools/tsconfig.json index 9a9976d457..6d3704e8e2 100644 --- a/redux-devtools/tsconfig.json +++ b/redux-devtools/tsconfig.json @@ -1,4 +1,5 @@ { + "files": ["index.d.ts", "redux-devtools-tests.tsx"], "compilerOptions": { "module": "commonjs", "target": "es6", diff --git a/ref-struct/index.d.ts b/ref-struct/index.d.ts index 120021bf51..e0b47b288e 100644 --- a/ref-struct/index.d.ts +++ b/ref-struct/index.d.ts @@ -3,10 +3,6 @@ // Definitions by: Paul Loyd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - - import ref = require('ref'); /** diff --git a/semaphore/semaphore-tests.ts b/semaphore/semaphore-tests.ts index d6df36030a..c3d53990fc 100644 --- a/semaphore/semaphore-tests.ts +++ b/semaphore/semaphore-tests.ts @@ -1,5 +1,3 @@ -/// - import semaphore = require('semaphore'); var sem: semaphore.Semaphore = semaphore(10); diff --git a/socket.io-redis/socket.io-redis-tests.ts b/socket.io-redis/socket.io-redis-tests.ts index 2ce2be1bd6..986c9209c6 100644 --- a/socket.io-redis/socket.io-redis-tests.ts +++ b/socket.io-redis/socket.io-redis-tests.ts @@ -1,5 +1,4 @@ /// -/// /// import socketIO = require('socket.io'); diff --git a/sql.js/sql.js-tests.ts b/sql.js/sql.js-tests.ts index 40fceb8fbd..2f16ef1d49 100644 --- a/sql.js/sql.js-tests.ts +++ b/sql.js/sql.js-tests.ts @@ -2,7 +2,6 @@ /// import fs = require("fs"); -import SQL = require("sql.js"); var DB_PATH = "data.db"; @@ -14,7 +13,7 @@ function createFile(path: string): void { // Open the database file. If it does not exist, create a blank database in memory. var databaseData: Buffer; databaseData = fs.existsSync(DB_PATH) ? fs.readFileSync(DB_PATH) : null; -var db = new SQL.Database(databaseData); +var db = new Database(databaseData); // Create a new table 'test_table' in the database in memory. var createTableStatement = diff --git a/sql.js/sql.js.d.ts b/sql.js/sql.js.d.ts index 6aea5a0d12..999942cf3e 100644 --- a/sql.js/sql.js.d.ts +++ b/sql.js/sql.js.d.ts @@ -5,8 +5,6 @@ /// - - declare class Database { constructor(data: Buffer); constructor(data: Uint8Array); diff --git a/squirejs/squirejs-tests.ts b/squirejs/squirejs-tests.ts index ece75c8349..92f56b9333 100644 --- a/squirejs/squirejs-tests.ts +++ b/squirejs/squirejs-tests.ts @@ -1,5 +1,5 @@ -import Squire = require('Squire'); +import Squire = require('squirejs'); // Default Configuration var injector = new Squire(); diff --git a/temp-fs/temp-fs-tests.ts b/temp-fs/temp-fs-tests.ts index 9d01e31f37..15f5a67518 100644 --- a/temp-fs/temp-fs-tests.ts +++ b/temp-fs/temp-fs-tests.ts @@ -26,6 +26,6 @@ tempfs.mkdir({ if (err) { throw err; } console.log(dir.path, dir.recursive); - throw new Error('Since it is tracked, tempfs will remove it for you.'); dir.unlink(); + throw new Error('Since it is tracked, tempfs will remove it for you.'); }); diff --git a/yosay/index.d.ts b/yosay/index.d.ts index 71698efe50..e806c59910 100644 --- a/yosay/index.d.ts +++ b/yosay/index.d.ts @@ -3,6 +3,5 @@ // Definitions by: Kentaro Okuno // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - declare function yosay(message?: string, options?: { maxLength: number }): string; export = yosay; diff --git a/yosay/yosay-tests.ts b/yosay/yosay-tests.ts index 37aa363490..a22e8e69e1 100644 --- a/yosay/yosay-tests.ts +++ b/yosay/yosay-tests.ts @@ -1,3 +1,2 @@ - import yosay = require('yosay'); yosay('Welcome to the generator!', {maxLength: 20}); \ No newline at end of file