diff --git a/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-tests.ts b/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-tests.ts index dca1f93120..e83b94ea5b 100644 --- a/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-tests.ts +++ b/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-tests.ts @@ -1,6 +1,3 @@ - -/// - var item: PayPalItem; item = new PayPalItem("name", 10, "25.00", "USD"); item = new PayPalItem("name", 10, "25.00", "USD", null); diff --git a/accounting/accounting-tests.ts b/accounting/accounting-tests.ts index bc9b74eaad..eff00e33b9 100644 --- a/accounting/accounting-tests.ts +++ b/accounting/accounting-tests.ts @@ -1,6 +1,4 @@ -/// - -// formatMoney +// formatMoney // Default usage: accounting.formatMoney(12345678); // $12,345,678.00 diff --git a/alt/alt-tests.ts b/alt/alt-tests.ts index 673930cd68..8d1108ada3 100644 --- a/alt/alt-tests.ts +++ b/alt/alt-tests.ts @@ -1,8 +1,6 @@ /** * Created by shearerbeard on 6/28/15. */ -/// - import Alt = require("alt"); //New alt instance diff --git a/angular-cookie/angular-cookie-tests.ts b/angular-cookie/angular-cookie-tests.ts index 5974eb35d4..7600762086 100644 --- a/angular-cookie/angular-cookie-tests.ts +++ b/angular-cookie/angular-cookie-tests.ts @@ -1,5 +1,3 @@ -/// - angular.module('myApp', ['ipCookie']) .controller('cookieController', ['ipCookie', function(ipCookie: angular.cookie.CookieService) { ipCookie('key', 'value'); diff --git a/angular-dynamic-locale/angular-dynamic-locale-tests.ts b/angular-dynamic-locale/angular-dynamic-locale-tests.ts index 03d0435d4d..3a4cc06e25 100644 --- a/angular-dynamic-locale/angular-dynamic-locale-tests.ts +++ b/angular-dynamic-locale/angular-dynamic-locale-tests.ts @@ -1,6 +1,3 @@ - -/// - var app = angular.module('testModule', ['tmh.dynamicLocale']); app.config((localStorageServiceProvider: angular.dynamicLocale.tmhDynamicLocaleProvider) => { localStorageServiceProvider diff --git a/angular-local-storage/angular-local-storage-tests.ts b/angular-local-storage/angular-local-storage-tests.ts index a2540e0234..439de2caff 100644 --- a/angular-local-storage/angular-local-storage-tests.ts +++ b/angular-local-storage/angular-local-storage-tests.ts @@ -1,6 +1,3 @@ - -/// - interface TestScope extends ng.IScope { submit: (key: string, value: string) => boolean; getItem: (key: string) => string; diff --git a/angular-locker/angular-locker-tests.ts b/angular-locker/angular-locker-tests.ts index 45c8708292..266f51825e 100644 --- a/angular-locker/angular-locker-tests.ts +++ b/angular-locker/angular-locker-tests.ts @@ -1,6 +1,3 @@ - -/// - angular .module('angular-locker-tests', ['angular-locker']) .config(['lockerProvider', function config(lockerProvider: angular.locker.ILockerProvider) { diff --git a/angular-signalr-hub/angular-signalr-hub-tests.ts b/angular-signalr-hub/angular-signalr-hub-tests.ts index 86343d36aa..771e49cdff 100644 --- a/angular-signalr-hub/angular-signalr-hub-tests.ts +++ b/angular-signalr-hub/angular-signalr-hub-tests.ts @@ -1,5 +1,3 @@ -/// - angular .module('app', ['SignalR']) .factory('Employees', ngSignalrTest.EmployeesFactory); diff --git a/angular-storage/angular-storage-tests.ts b/angular-storage/angular-storage-tests.ts index 51a2cd914b..0b5a48f12c 100644 --- a/angular-storage/angular-storage-tests.ts +++ b/angular-storage/angular-storage-tests.ts @@ -1,5 +1,3 @@ -/// - // Samples taken from the a0-angular-storage Readme.md var app = angular.module('angular-storage-tests', ['angular-storage']); diff --git a/angular-strap/angular-strap-tests.ts b/angular-strap/angular-strap-tests.ts index a51e898665..c37d6d103b 100644 --- a/angular-strap/angular-strap-tests.ts +++ b/angular-strap/angular-strap-tests.ts @@ -1,5 +1,4 @@ /// -/// namespace angularStrapTests { diff --git a/angular-toastr/angular-toastr-tests.ts b/angular-toastr/angular-toastr-tests.ts index 2dccd76120..6cb4290b3c 100644 --- a/angular-toastr/angular-toastr-tests.ts +++ b/angular-toastr/angular-toastr-tests.ts @@ -1,7 +1,3 @@ - -/// - - angular .module('toastr-tests', ['toastr']) .config(function(toastrConfig: angular.toastr.IToastrConfig) { diff --git a/angular-wizard/angular-wizard-tests.ts b/angular-wizard/angular-wizard-tests.ts index 020a68b924..71cd1cbbc2 100644 --- a/angular-wizard/angular-wizard-tests.ts +++ b/angular-wizard/angular-wizard-tests.ts @@ -1,8 +1,5 @@ /// /// -/// - - // test file taken from https://github.com/mgonto/angular-wizard diff --git a/angularfire/angularfire-tests.ts b/angularfire/angularfire-tests.ts index c649301e37..38020c0f7c 100644 --- a/angularfire/angularfire-tests.ts +++ b/angularfire/angularfire-tests.ts @@ -1,5 +1,3 @@ -/// - var myapp = angular.module("myapp", ["firebase"]); interface AngularFireScope extends ng.IScope { diff --git a/angularjs/index.d.ts b/angularjs/index.d.ts index 14d1663e95..4e9707596f 100644 --- a/angularjs/index.d.ts +++ b/angularjs/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Diego Vilar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// /// diff --git a/big.js/big.js-tests.ts b/big.js/big.js-tests.ts index 0067a0b4f5..10a1f44a0f 100644 --- a/big.js/big.js-tests.ts +++ b/big.js/big.js-tests.ts @@ -2,7 +2,6 @@ // Project: https://github.com/MikeMcl/big.js/ // Definitions by: Steve Ognibene // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// /* diff --git a/bigscreen/bigscreen-tests.ts b/bigscreen/bigscreen-tests.ts index 9e0c9fda8c..459e7cd449 100644 --- a/bigscreen/bigscreen-tests.ts +++ b/bigscreen/bigscreen-tests.ts @@ -1,5 +1,3 @@ -/// - import BigScreen = require("bigscreen"); BigScreen.onchange = function(element: Element) { diff --git a/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts b/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts index 9a7ce37577..32ac20a874 100644 --- a/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts +++ b/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts @@ -3,8 +3,6 @@ // Definitions by: Eric Todd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare namespace Microsoft.Maps.AdvancedShapes { export class EntityCollection { diff --git a/bingmaps/Microsoft.Maps.Directions.d.ts b/bingmaps/Microsoft.Maps.Directions.d.ts index b2e1ce27cb..e9f2fa9cf1 100644 --- a/bingmaps/Microsoft.Maps.Directions.d.ts +++ b/bingmaps/Microsoft.Maps.Directions.d.ts @@ -3,8 +3,6 @@ // Definitions by: Eric Todd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare namespace Microsoft.Maps.Directions { export interface BusinessDetails { diff --git a/bingmaps/Microsoft.Maps.Search.d.ts b/bingmaps/Microsoft.Maps.Search.d.ts index 8d198ee9af..21011ab1cd 100644 --- a/bingmaps/Microsoft.Maps.Search.d.ts +++ b/bingmaps/Microsoft.Maps.Search.d.ts @@ -3,8 +3,6 @@ // Definitions by: Eric Todd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare namespace Microsoft.Maps.Search { export interface Address { diff --git a/bingmaps/Microsoft.Maps.Traffic.d.ts b/bingmaps/Microsoft.Maps.Traffic.d.ts index de62786176..353ec39b7c 100644 --- a/bingmaps/Microsoft.Maps.Traffic.d.ts +++ b/bingmaps/Microsoft.Maps.Traffic.d.ts @@ -3,8 +3,6 @@ // Definitions by: Eric Todd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare namespace Microsoft.Maps.Traffic { export class TrafficManager { diff --git a/bingmaps/Microsoft.Maps.VenueMaps.d.ts b/bingmaps/Microsoft.Maps.VenueMaps.d.ts index f267ea4b25..51b41815f5 100644 --- a/bingmaps/Microsoft.Maps.VenueMaps.d.ts +++ b/bingmaps/Microsoft.Maps.VenueMaps.d.ts @@ -3,8 +3,6 @@ // Definitions by: Eric Todd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare namespace Microsoft.Maps.VenueMaps { export interface MouseResponse { diff --git a/bingmaps/bingmaps-tests.ts b/bingmaps/bingmaps-tests.ts index c595fa1f6f..d50efb0e62 100644 --- a/bingmaps/bingmaps-tests.ts +++ b/bingmaps/bingmaps-tests.ts @@ -1,5 +1,4 @@ -/// -/// +/// /// /// /// diff --git a/bip21/bip21-tests.ts b/bip21/bip21-tests.ts index e685eca102..ac8ad44b67 100644 --- a/bip21/bip21-tests.ts +++ b/bip21/bip21-tests.ts @@ -1,5 +1,3 @@ -/// - let decoded:any = bip21.decode('bitcoin:1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH?amount=20.3&label=Foobar'); let encoded:string = bip21.encode('1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH', { diff --git a/blissfuljs/blissfuljs-tests.ts b/blissfuljs/blissfuljs-tests.ts index 55085f00ae..1601ce9457 100644 --- a/blissfuljs/blissfuljs-tests.ts +++ b/blissfuljs/blissfuljs-tests.ts @@ -1,5 +1,3 @@ -/// - function test_overview() { /*Bliss includes several static methods (on the Bliss or $ object). For example, to copy all properties of an object onto another object, you would call $.extend():*/ diff --git a/bluebird/bluebird-tests.ts b/bluebird/bluebird-tests.ts index a24cdfd7ee..8acdcb44bd 100644 --- a/bluebird/bluebird-tests.ts +++ b/bluebird/bluebird-tests.ts @@ -1,5 +1,3 @@ -/// - // Tests by: Bart van der Schoor // Note: replicate changes to all overloads in both definition and test file diff --git a/bookshelf/index.d.ts b/bookshelf/index.d.ts index f7e9f52602..2f1629c082 100644 --- a/bookshelf/index.d.ts +++ b/bookshelf/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare module 'bookshelf' { import knex = require('knex'); diff --git a/bootpag/bootpag-tests.ts b/bootpag/bootpag-tests.ts index 34d10b5bed..6a5503f9f8 100644 --- a/bootpag/bootpag-tests.ts +++ b/bootpag/bootpag-tests.ts @@ -1,5 +1,4 @@ /// -/// var pagerSelector = ".bootpager"; var $pager = $(pagerSelector); diff --git a/bootstrap-maxlength/bootstrap-maxlength-tests.ts b/bootstrap-maxlength/bootstrap-maxlength-tests.ts index c03cdeba80..32255bc66b 100644 --- a/bootstrap-maxlength/bootstrap-maxlength-tests.ts +++ b/bootstrap-maxlength/bootstrap-maxlength-tests.ts @@ -1,4 +1,3 @@ -/// /// // Examples from the projects github page diff --git a/bootstrap.datepicker/bootstrap.datepicker-tests.ts b/bootstrap.datepicker/bootstrap.datepicker-tests.ts index b275ee25a8..5e084697a2 100644 --- a/bootstrap.datepicker/bootstrap.datepicker-tests.ts +++ b/bootstrap.datepicker/bootstrap.datepicker-tests.ts @@ -1,6 +1,4 @@ -/// - -function tests_simple() { +function tests_simple() { $('#datepicker').datepicker(); $('#datepicker').datepicker({ format: 'mm-dd-yyyy' diff --git a/bucks/bucks-tests.ts b/bucks/bucks-tests.ts index 6062494231..c996de4459 100644 --- a/bucks/bucks-tests.ts +++ b/bucks/bucks-tests.ts @@ -1,5 +1,3 @@ -/// - function add_and_end() { // // new Bucks object diff --git a/bull/bull-tests.tsx b/bull/bull-tests.tsx index d2b5249254..1d307fd31e 100644 --- a/bull/bull-tests.tsx +++ b/bull/bull-tests.tsx @@ -2,9 +2,6 @@ * Created by Bruno Grieder */ -/// - - import * as Queue from "bull" var videoQueue = Queue( 'video transcoding', 6379, '127.0.0.1' ); diff --git a/chrome/index.d.ts b/chrome/index.d.ts index 6e7cbb787a..e6b6274906 100644 --- a/chrome/index.d.ts +++ b/chrome/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Matthew Kimber , otiai10 , couven92 , RReverser // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// //////////////////// diff --git a/colors/colors-tests.ts b/colors/colors-tests.ts index 15fd5ab4e5..e0e9120074 100644 --- a/colors/colors-tests.ts +++ b/colors/colors-tests.ts @@ -1,6 +1,3 @@ - -/// - import colors = require("colors"); console.log(colors.black.underline('test')); diff --git a/commander/commander-tests.ts b/commander/commander-tests.ts index 52dd0f8504..bf57f1897c 100644 --- a/commander/commander-tests.ts +++ b/commander/commander-tests.ts @@ -1,5 +1,3 @@ -/// - // NOTE: import statement can not use in TypeScript 1.0.1 var program:commander.IExportedCommand = require('commander'); diff --git a/cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts b/cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts index bcf055a5dd..ac632272f6 100644 --- a/cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts +++ b/cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts @@ -1,5 +1,4 @@ /// -/// cordova.plugins.backgroundMode.setDefaults({ silent: true }); diff --git a/cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts b/cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts index 52ef78700b..db3d45c306 100644 --- a/cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts +++ b/cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts @@ -1,6 +1,3 @@ -/// - - mapsforge.embedded.initialize(["/mnt/sdcard/spain.map",0,0]); //Creates the view mapsforge.embedded.setCenter(43.360056,-5.845757); //Sets the center of the view mapsforge.embedded.setMaxZoom(18); diff --git a/cordova/cordova-tests.ts b/cordova/cordova-tests.ts index f9179ae7ac..6ab730af11 100644 --- a/cordova/cordova-tests.ts +++ b/cordova/cordova-tests.ts @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. -/// - // Apache Cordova core //---------------------------------------------------------------------- diff --git a/cordovarduino/cordovarduino-tests.ts b/cordovarduino/cordovarduino-tests.ts index a4fd608789..a33a8c3f9d 100644 --- a/cordovarduino/cordovarduino-tests.ts +++ b/cordovarduino/cordovarduino-tests.ts @@ -1,5 +1,3 @@ -/// - serial.requestPermission(function success() {}, function error() {}); serial.open({}, function success() {}, function error() {}); serial.write('data_string', function success() {}, function error() {}); diff --git a/cropperjs/cropperjs-tests.ts b/cropperjs/cropperjs-tests.ts index d328a12b4a..9fb8556118 100644 --- a/cropperjs/cropperjs-tests.ts +++ b/cropperjs/cropperjs-tests.ts @@ -1,2 +1 @@ -/// import * as Cropper from 'cropperjs'; diff --git a/crossroads/index.d.ts b/crossroads/index.d.ts index f4451cc989..f0da2a56b6 100644 --- a/crossroads/index.d.ts +++ b/crossroads/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Diullei Gomes // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace CrossroadsJs { diff --git a/dagre-d3/dagre-d3-tests.ts b/dagre-d3/dagre-d3-tests.ts index f73389015f..2df9706039 100644 --- a/dagre-d3/dagre-d3-tests.ts +++ b/dagre-d3/dagre-d3-tests.ts @@ -1,4 +1,3 @@ -/// namespace DagreD3Tests { var gDagre = new dagreD3.graphlib.Graph(); var graph = gDagre.graph(); diff --git a/dagre/dagre-tests.ts b/dagre/dagre-tests.ts index a4eaad32f3..8baed95ee8 100644 --- a/dagre/dagre-tests.ts +++ b/dagre/dagre-tests.ts @@ -1,4 +1,3 @@ -/// namespace DagreTests { var gDagre = new dagre.graphlib.Graph(); gDagre.setGraph({}) diff --git a/dc/dc-tests.ts b/dc/dc-tests.ts index 57817f4b67..38ae18fe98 100644 --- a/dc/dc-tests.ts +++ b/dc/dc-tests.ts @@ -1,6 +1,5 @@ /// /// -/// interface IYelpData { city: string; diff --git a/dom4/dom4-tests.ts b/dom4/dom4-tests.ts index 9d1a7220d9..35867f2e43 100644 --- a/dom4/dom4-tests.ts +++ b/dom4/dom4-tests.ts @@ -1,5 +1,3 @@ -/// - function testDocument() { document.query(".container-a").classList; document.queryAll(".container-b")[0].className; diff --git a/dotdotdot/dotdotdot-tests.ts b/dotdotdot/dotdotdot-tests.ts index 353f93444c..6bfe424b8c 100644 --- a/dotdotdot/dotdotdot-tests.ts +++ b/dotdotdot/dotdotdot-tests.ts @@ -1,4 +1,3 @@ -/// /// $("span").dotdotdot({ ellipsis: ":::" }); diff --git a/easystarjs/easystarjs-tests.ts b/easystarjs/easystarjs-tests.ts index c76f70cbfe..206e5bf2cc 100644 --- a/easystarjs/easystarjs-tests.ts +++ b/easystarjs/easystarjs-tests.ts @@ -1,5 +1,3 @@ -/// - // For node.js compile using: tsc --module commonjs easystarjs-tests.ts // then run using: node easystarjs-tests.js import EasyStar = require('easystarjs'); diff --git a/email-templates/email-templates-tests.ts b/email-templates/email-templates-tests.ts index 9b70728106..7a0c6791a2 100644 --- a/email-templates/email-templates-tests.ts +++ b/email-templates/email-templates-tests.ts @@ -1,5 +1,3 @@ -/// - import EmailTemplates = require('email-templates'); var EmailTemplate = EmailTemplates.EmailTemplate; diff --git a/ember/ember-tests.ts b/ember/ember-tests.ts index 63731b6b53..103fb0146e 100644 --- a/ember/ember-tests.ts +++ b/ember/ember-tests.ts @@ -1,7 +1,3 @@ - -/// - - var App : any; App = Em.Application.create(); diff --git a/ember/index.d.ts b/ember/index.d.ts index e75e27d0c7..c278c17bd6 100644 --- a/ember/index.d.ts +++ b/ember/index.d.ts @@ -4,9 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// - -declare var Handlebars: HandlebarsStatic; +/// declare namespace EmberStates { diff --git a/eventemitter2/eventemitter2-tests.ts b/eventemitter2/eventemitter2-tests.ts index 747f2e87b6..936366c0b9 100644 --- a/eventemitter2/eventemitter2-tests.ts +++ b/eventemitter2/eventemitter2-tests.ts @@ -1,5 +1,3 @@ -/// - // Example for CommonJS/AMD /* import eventemitter2 = require("eventemitter2"); diff --git a/eventemitter3/eventemitter3-tests.ts b/eventemitter3/eventemitter3-tests.ts index 5bb84f8b2e..fd4f41a25f 100644 --- a/eventemitter3/eventemitter3-tests.ts +++ b/eventemitter3/eventemitter3-tests.ts @@ -1,4 +1,3 @@ -/// /// /// 'use strict'; diff --git a/expectations/expectations-tests.ts b/expectations/expectations-tests.ts index bec270c0b0..b0cef0aa0f 100644 --- a/expectations/expectations-tests.ts +++ b/expectations/expectations-tests.ts @@ -1,7 +1,5 @@ /// -/// - // transplant from https://github.com/spmason/expectations/blob/695c25bd35bb1751533a8082a5aa378e3e1b381f/test/expect.tests.js var root = this; diff --git a/express-validator/express-validator-tests.ts b/express-validator/express-validator-tests.ts index 74bd277e46..8f4f9bab9c 100644 --- a/express-validator/express-validator-tests.ts +++ b/express-validator/express-validator-tests.ts @@ -1,5 +1,3 @@ -/// - /* Usage Example from https://github.com/ctavan/express-validator */ import util = require('util') diff --git a/fabric/fabricjs-tests.ts b/fabric/fabricjs-tests.ts index 97b630b9b1..91f4224ff5 100644 --- a/fabric/fabricjs-tests.ts +++ b/fabric/fabricjs-tests.ts @@ -1,5 +1,3 @@ -/// - function sample1() { var canvas = new fabric.Canvas('c', { hoverCursor: 'pointer', diff --git a/falcor-http-datasource/falcor-http-datasource-tests.ts b/falcor-http-datasource/falcor-http-datasource-tests.ts index 23d6f563b7..b341274a19 100644 --- a/falcor-http-datasource/falcor-http-datasource-tests.ts +++ b/falcor-http-datasource/falcor-http-datasource-tests.ts @@ -1,5 +1,3 @@ -/// - import HttpDataSource from 'falcor-http-datasource'; import {Model} from 'falcor'; diff --git a/favico.js/favico.js-tests.ts b/favico.js/favico.js-tests.ts index 74130d5877..e81be5e921 100644 --- a/favico.js/favico.js-tests.ts +++ b/favico.js/favico.js-tests.ts @@ -1,6 +1,3 @@ -/// - - // constructor options var plain = (): favicojs.Favico => new Favico({ diff --git a/featherlight/featherlight-tests.ts b/featherlight/featherlight-tests.ts index 729603384b..4d609d3475 100644 --- a/featherlight/featherlight-tests.ts +++ b/featherlight/featherlight-tests.ts @@ -1,7 +1,6 @@ // Tests by: Kaur Kuut /// -/// // Every option as default var defaultOptions = { diff --git a/firebase-token-generator/firebase-token-generator-tests.ts b/firebase-token-generator/firebase-token-generator-tests.ts index 7dc25b6a0b..c7020ee9fe 100644 --- a/firebase-token-generator/firebase-token-generator-tests.ts +++ b/firebase-token-generator/firebase-token-generator-tests.ts @@ -1,4 +1,3 @@ -/// import FirebaseTokenGenerator = require('firebase-token-generator'); const tokenGenerator: FirebaseTokenGenerator = new FirebaseTokenGenerator("MY_SECRET"); diff --git a/flickity/flickity-tests.ts b/flickity/flickity-tests.ts index d09bd9d823..5bccb9ada4 100644 --- a/flickity/flickity-tests.ts +++ b/flickity/flickity-tests.ts @@ -2,15 +2,14 @@ // Project: http://flickity.metafizzy.co/ // Definitions by: Chris McGrath // Definitions: https://github.com/clmcgrath/ + /// /// -/// - //jQuery tests - var $flickity : JQuery = $("#flickity-selector").flickity( +var $flickity: JQuery = $("#flickity-selector").flickity( { initialIndex: 0, accessibility: true, @@ -37,14 +36,14 @@ rightToLeft: false }); - $flickity.flickity("next") - .flickity('select', 4); +$flickity.flickity("next") + .flickity('select', 4); - //Vanilla jQuery tests - var flikty : Flickity = new Flickity("#flickity-gallery"); +//Vanilla jQuery tests +var flikty: Flickity = new Flickity("#flickity-gallery"); - var flikty2: Flickity = - new Flickity("#flickity-gallery", +var flikty2: Flickity = + new Flickity("#flickity-gallery", { initialIndex: 0, accessibility: true, @@ -71,67 +70,67 @@ rightToLeft: false }); - //ES6 element selector for tests - var element = document.querySelector("#gallery"); - var nodeList = document.querySelectorAll("#gallery"); - var cellElements: Array = flikty2.getCellElements(); +//ES6 element selector for tests +var element = document.querySelector("#gallery"); +var nodeList = document.querySelectorAll("#gallery"); +var cellElements: Array = flikty2.getCellElements(); - flikty2.select(1, true); - flikty2.select(1); +flikty2.select(1, true); +flikty2.select(1); - flikty2.previous(); - flikty2.previous(true); +flikty2.previous(); +flikty2.previous(true); - flikty2.next(); - flikty2.next(true); +flikty2.next(); +flikty2.next(true); - flikty2.resize(); - flikty2.reposition(); +flikty2.resize(); +flikty2.reposition(); - flikty2.prepend(element); +flikty2.prepend(element); - flikty2.append(element); - flikty2.append(nodeList); +flikty2.append(element); +flikty2.append(nodeList); - flikty2.insert(element, 0); - flikty2.insert(nodeList, 0); - flikty2.insert(new Array(), 0); +flikty2.insert(element, 0); +flikty2.insert(nodeList, 0); +flikty2.insert(new Array(), 0); - flikty2.remove(element); - flikty2.remove(nodeList); - flikty2.remove(new Array()); +flikty2.remove(element); +flikty2.remove(nodeList); +flikty2.remove(new Array()); - flikty2.destroy(); +flikty2.destroy(); - flikty2.reloadCells(); +flikty2.reloadCells(); - //event handlers - flikty2.on(FlickityEvents.cellSelect, (evt, ele) => { - //do something - }); +//event handlers +flikty2.on(FlickityEvents.cellSelect, (evt, ele) => { + //do something +}); - flikty2.off(FlickityEvents.cellSelect, (evt, ele, pntr , vctr) => { - //do something - }); +flikty2.off(FlickityEvents.cellSelect, (evt, ele, pntr, vctr) => { + //do something +}); - flikty2.once(FlickityEvents.cellSelect, (evt, ele, pntr) => { - //do something - }); +flikty2.once(FlickityEvents.cellSelect, (evt, ele, pntr) => { + //do something +}); - flikty2.listener("myCustomEvent", (evt : Event) => { - //do something - }); +flikty2.listener("myCustomEvent", (evt: Event) => { + //do something +}); - //static get data methods +//static get data methods - var jQdata = jQuery.fn.data('flickity')(); - jQdata = $.fn.data('flickity')(); +var jQdata = jQuery.fn.data('flickity')(); +jQdata = $.fn.data('flickity')(); - var jsData = Flickity.data("#gallery"); - jsData = Flickity.data("#gallery"); +var jsData = Flickity.data("#gallery"); +jsData = Flickity.data("#gallery"); - //property tests - var selectedIndex : number = flikty2.selectedIndex; +//property tests +var selectedIndex: number = flikty2.selectedIndex; - var selectedElement: Element = flikty2.selectedElement; - var cells : Array = flikty2.cells; +var selectedElement: Element = flikty2.selectedElement; +var cells: Array = flikty2.cells; diff --git a/flipsnap/flipsnap-tests.ts b/flipsnap/flipsnap-tests.ts index a6b2f4fe8b..57de7ae874 100644 --- a/flipsnap/flipsnap-tests.ts +++ b/flipsnap/flipsnap-tests.ts @@ -1,7 +1,6 @@ /** * Created by kubosho_ on 6/16/2014. */ -/// Flipsnap('', { maxPoint: 3, diff --git a/fluxxor/fluxxor-tests.ts b/fluxxor/fluxxor-tests.ts index 7d8c5c948d..ef6a8c707a 100644 --- a/fluxxor/fluxxor-tests.ts +++ b/fluxxor/fluxxor-tests.ts @@ -1,5 +1,3 @@ -/// - import React = require('react'); import Fluxxor = require('fluxxor'); diff --git a/fontoxml/fontoxml-tests.ts b/fontoxml/fontoxml-tests.ts index 11d47db895..512677cefb 100644 --- a/fontoxml/fontoxml-tests.ts +++ b/fontoxml/fontoxml-tests.ts @@ -1,5 +1,3 @@ -/// - var workflow:com.fontoxml.IWorkflowInfo = { id:"1", displayName:"workflow" diff --git a/format-unicorn/format-unicorn-tests.ts b/format-unicorn/format-unicorn-tests.ts index e256b65ae7..101c0cc143 100644 --- a/format-unicorn/format-unicorn-tests.ts +++ b/format-unicorn/format-unicorn-tests.ts @@ -1,5 +1,3 @@ -/// - import 'format-unicorn'; // Unsafe version diff --git a/giraffe/index.d.ts b/giraffe/index.d.ts index 0abf3a9acb..f9198a7d8b 100644 --- a/giraffe/index.d.ts +++ b/giraffe/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Matt McCray // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// declare namespace Giraffe { diff --git a/gldatepicker/gldatepicker-tests.ts b/gldatepicker/gldatepicker-tests.ts index 945de6fc60..d133a5f823 100644 --- a/gldatepicker/gldatepicker-tests.ts +++ b/gldatepicker/gldatepicker-tests.ts @@ -1,5 +1,4 @@ /// -/// $('input').glDatePicker(); $('#example2').glDatePicker( diff --git a/glidejs/glidejs-tests.ts b/glidejs/glidejs-tests.ts index 60650f0151..323a0a5f07 100644 --- a/glidejs/glidejs-tests.ts +++ b/glidejs/glidejs-tests.ts @@ -1,4 +1,3 @@ -/// /// // Copied from documentation diff --git a/google-maps/index.d.ts b/google-maps/index.d.ts index 0a5c7d7738..c6649f8d17 100644 --- a/google-maps/index.d.ts +++ b/google-maps/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Deividas Bakanas , Giedrius Grabauskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace GoogleMapsLoader { interface CallBack { diff --git a/googlemaps.infobubble/google.maps.infobubble-tests.ts b/googlemaps.infobubble/google.maps.infobubble-tests.ts index 4f9598cc60..005457d1e8 100644 --- a/googlemaps.infobubble/google.maps.infobubble-tests.ts +++ b/googlemaps.infobubble/google.maps.infobubble-tests.ts @@ -1,6 +1,3 @@ -/// - - function test_options() { var options: google.maps.infobubble.InfoBubbleOptions; options = {}; diff --git a/googlemaps.infobubble/index.d.ts b/googlemaps.infobubble/index.d.ts index 3393a0e0bf..e7381109e9 100644 --- a/googlemaps.infobubble/index.d.ts +++ b/googlemaps.infobubble/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Johan Nilsson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /** * @name CSS3 InfoBubble with tabs for Google Maps API V3 diff --git a/hasher/index.d.ts b/hasher/index.d.ts index d250d7e185..e2eff2514b 100644 --- a/hasher/index.d.ts +++ b/hasher/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: flyfishMT // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace HasherJs { diff --git a/hashmap/hashmap-tests.ts b/hashmap/hashmap-tests.ts index ff9f69529b..0725e1e893 100644 --- a/hashmap/hashmap-tests.ts +++ b/hashmap/hashmap-tests.ts @@ -1,5 +1,3 @@ -/// - var emptyMap:HashMap = new HashMap(); var filledMap:HashMap = new HashMap("bar", 123, "bar2", 234); var copiedMap:HashMap = new HashMap(filledMap); diff --git a/hypertext-application-language/hypertext-application-language-tests.ts b/hypertext-application-language/hypertext-application-language-tests.ts index 0468d91f27..652b467d1a 100644 --- a/hypertext-application-language/hypertext-application-language-tests.ts +++ b/hypertext-application-language/hypertext-application-language-tests.ts @@ -1,6 +1,4 @@ -/// - -// Link object +// Link object // Fields format: var link:Hal.Link = { diff --git a/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts b/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts index 7262d0cd7f..bca7aee3b7 100644 --- a/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts +++ b/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts @@ -1,5 +1,4 @@ -/// -/// +/// import * as i18next from 'i18next'; import LngDetector from 'i18next-browser-languagedetector'; diff --git a/i18next-browser-languagedetector/index.d.ts b/i18next-browser-languagedetector/index.d.ts index b305d8e070..24e514fbd2 100644 --- a/i18next-browser-languagedetector/index.d.ts +++ b/i18next-browser-languagedetector/index.d.ts @@ -3,8 +3,7 @@ // Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// -/// +/// declare namespace I18next { interface I18nextStatic extends i18nextBrowserLanguageDetector.I18nextStatic { } diff --git a/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts b/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts index 462dee9c00..924541f7a1 100644 --- a/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts +++ b/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts @@ -1,5 +1,3 @@ -/// - import * as i18next from 'i18next'; import * as Backend from 'i18next-node-fs-backend'; diff --git a/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts b/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts index 36a948d620..b0dd169eee 100644 --- a/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts +++ b/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts @@ -1,5 +1,3 @@ -/// - import * as i18next from "i18next"; import * as sprintfA from "i18next-sprintf-postprocessor"; import sprintfB from "i18next-sprintf-postprocessor/dist/commonjs"; diff --git a/i18next/i18next-tests.ts b/i18next/i18next-tests.ts index 87ddf372f9..3b072587b0 100644 --- a/i18next/i18next-tests.ts +++ b/i18next/i18next-tests.ts @@ -1,10 +1,8 @@ /// /// /// -/// /// - import * as i18n from 'i18next'; i18n.init({ diff --git a/icheck/icheck-tests.ts b/icheck/icheck-tests.ts index d39d3a540d..f7096f5851 100644 --- a/icheck/icheck-tests.ts +++ b/icheck/icheck-tests.ts @@ -1,5 +1,4 @@ -/// -/// +/// $('input').iCheck({ labelHover: false, diff --git a/iconv/iconv-tests.ts b/iconv/iconv-tests.ts index 5c121c1b45..ecad6547a8 100644 --- a/iconv/iconv-tests.ts +++ b/iconv/iconv-tests.ts @@ -1,5 +1,3 @@ -/// - import {Iconv} from "iconv"; import {Writable} from "stream"; diff --git a/imap/imap-tests.ts b/imap/imap-tests.ts index 8d9ce6cce8..ca35ee288b 100644 --- a/imap/imap-tests.ts +++ b/imap/imap-tests.ts @@ -1,13 +1,7 @@ -/// - /* * This code contains all of the example code that was on https://www.npmjs.com/package/imap as of Sat Dec 13, 2014. */ - - - - import Imap = require('imap'); import util = require('util'); import inspect = util.inspect; diff --git a/inquirer/index.d.ts b/inquirer/index.d.ts index 3a72134ab8..9ff36e3098 100644 --- a/inquirer/index.d.ts +++ b/inquirer/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Qubo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// import through = require('through'); diff --git a/ion.rangeSlider/ion.rangeSlider-tests.ts b/ion.rangeSlider/ion.rangeSlider-tests.ts index 21a74e28e0..e60287feb3 100644 --- a/ion.rangeSlider/ion.rangeSlider-tests.ts +++ b/ion.rangeSlider/ion.rangeSlider-tests.ts @@ -1,5 +1,4 @@ /// -/// var sliderInputElement = $(''); sliderInputElement.ionRangeSlider({ diff --git a/irc/index.d.ts b/irc/index.d.ts index 3fee22a7ed..daa2c9e2ea 100644 --- a/irc/index.d.ts +++ b/irc/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: phillips1012 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /** This library provides IRC client functionality. */ diff --git a/isomorphic-fetch/isomorphic-fetch-tests.ts b/isomorphic-fetch/isomorphic-fetch-tests.ts index 3235912ac1..0e1789552f 100644 --- a/isomorphic-fetch/isomorphic-fetch-tests.ts +++ b/isomorphic-fetch/isomorphic-fetch-tests.ts @@ -1,5 +1,3 @@ -/// - function test_isomorphicFetchTestCases() { expectSuccess(fetch('http://localhost:3000/good'), 'Good response'); diff --git a/jasmine-node/index.d.ts b/jasmine-node/index.d.ts index 3c76b90505..ce0214ac3b 100644 --- a/jasmine-node/index.d.ts +++ b/jasmine-node/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Sven Reglitzki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare function it(expectation:string, assertion:(done:(err?:any) => void) => void, timeout?:number):void; diff --git a/java/java-tests.ts b/java/java-tests.ts index ca96ba0a77..e7cca6abb2 100644 --- a/java/java-tests.ts +++ b/java/java-tests.ts @@ -1,4 +1,3 @@ -/// /// import java = require('java'); diff --git a/javascript-bignum/javascript-bignum-tests.ts b/javascript-bignum/javascript-bignum-tests.ts index 57555fcce2..d0cf2c34d9 100644 --- a/javascript-bignum/javascript-bignum-tests.ts +++ b/javascript-bignum/javascript-bignum-tests.ts @@ -1,4 +1,3 @@ -/// let m = SchemeNumber("1"); let n = SchemeNumber(2); diff --git a/jointjs/index.d.ts b/jointjs/index.d.ts index 3c0bd1bea1..9af669fdea 100644 --- a/jointjs/index.d.ts +++ b/jointjs/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Aidan Reel , David Durman , Ewout Van Gossum // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace joint { diff --git a/jqrangeslider/jqrangeslider-tests.ts b/jqrangeslider/jqrangeslider-tests.ts index e6befe0795..0e8d600559 100644 --- a/jqrangeslider/jqrangeslider-tests.ts +++ b/jqrangeslider/jqrangeslider-tests.ts @@ -1,5 +1,4 @@ /// -/// // Arrows $("#arrowsExample").rangeSlider({ arrows: false }); diff --git a/jquery-backstretch/jquery-backstretch-tests.ts b/jquery-backstretch/jquery-backstretch-tests.ts index f46e15d51e..7220458769 100644 --- a/jquery-backstretch/jquery-backstretch-tests.ts +++ b/jquery-backstretch/jquery-backstretch-tests.ts @@ -1,5 +1,4 @@ /// -/// var backstretch = jQuery.backstretch(['image.png'], { centeredX: false, diff --git a/jquery-cropbox/jquery-cropbox-tests.ts b/jquery-cropbox/jquery-cropbox-tests.ts index c6e11b5b20..ddc5389625 100644 --- a/jquery-cropbox/jquery-cropbox-tests.ts +++ b/jquery-cropbox/jquery-cropbox-tests.ts @@ -1,5 +1,4 @@ /// -/// var cropboxWithDefaultSettings = $("#element").cropbox(); diff --git a/jquery-fullscreen/jquery-fullscreen-tests.ts b/jquery-fullscreen/jquery-fullscreen-tests.ts index 633b3d3934..4863690f5f 100644 --- a/jquery-fullscreen/jquery-fullscreen-tests.ts +++ b/jquery-fullscreen/jquery-fullscreen-tests.ts @@ -1,5 +1,3 @@ -/// - // // Examples from https://github.com/kayahr/jquery-fullscreen-plugin // diff --git a/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts b/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts index a9fa06e95e..30596aa477 100644 --- a/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts +++ b/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts @@ -1,5 +1,4 @@ /// -/// var foo = new $.JsonRpcClient({ ajaxUrl: '/backend/jsonrpc' }); foo.call( diff --git a/jquery-knob/jquery-knob-tests.ts b/jquery-knob/jquery-knob-tests.ts index a6c85e2c8b..13412284bd 100644 --- a/jquery-knob/jquery-knob-tests.ts +++ b/jquery-knob/jquery-knob-tests.ts @@ -1,5 +1,3 @@ -/// - // create from html attrs $('').knob(); diff --git a/jquery-mockjax/jquery-mockjax-tests.ts b/jquery-mockjax/jquery-mockjax-tests.ts index 89d5cea594..e5b588a869 100644 --- a/jquery-mockjax/jquery-mockjax-tests.ts +++ b/jquery-mockjax/jquery-mockjax-tests.ts @@ -1,5 +1,4 @@ /// -/// /// class Tests { diff --git a/jquery-timeentry/jquery-timeentry-tests.ts b/jquery-timeentry/jquery-timeentry-tests.ts index 73b0a33ea0..ccfe0794a3 100644 --- a/jquery-timeentry/jquery-timeentry-tests.ts +++ b/jquery-timeentry/jquery-timeentry-tests.ts @@ -1,5 +1,4 @@ /// -/// var selector = '#example'; diff --git a/jquery.are-you-sure/jquery.are-you-sure-tests.ts b/jquery.are-you-sure/jquery.are-you-sure-tests.ts index 249d3f7e55..4e10c1429f 100644 --- a/jquery.are-you-sure/jquery.are-you-sure-tests.ts +++ b/jquery.are-you-sure/jquery.are-you-sure-tests.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// //Use defaults $("test").areYouSure(); diff --git a/jquery.cleditor/jquery.cleditor-tests.ts b/jquery.cleditor/jquery.cleditor-tests.ts index 6d747c881f..7fe997c4c5 100644 --- a/jquery.cleditor/jquery.cleditor-tests.ts +++ b/jquery.cleditor/jquery.cleditor-tests.ts @@ -1,5 +1,4 @@ /// -/// // cribbed from http://premiumsoftware.net/CLEditor/GettingStarted diff --git a/jquery.clientSideLogging/jquery.clientSideLogging-tests.ts b/jquery.clientSideLogging/jquery.clientSideLogging-tests.ts index 35974af26a..b0724ecc0f 100644 --- a/jquery.clientSideLogging/jquery.clientSideLogging-tests.ts +++ b/jquery.clientSideLogging/jquery.clientSideLogging-tests.ts @@ -1,5 +1,3 @@ -/// - $.clientSideLogging({ log_level: 3, client_info: { diff --git a/jquery.color/jquery.color-tests.ts b/jquery.color/jquery.color-tests.ts index 6d45b03e1f..c94a1cffed 100644 --- a/jquery.color/jquery.color-tests.ts +++ b/jquery.color/jquery.color-tests.ts @@ -1,5 +1,4 @@ /// -/// var color = $.Color("rgba(255, 255, 255, 0.4)"); var color1 = $.Color({red: 255, green: 255, blue: 255}); diff --git a/jquery.colorbox/jquery.colorbox-tests.ts b/jquery.colorbox/jquery.colorbox-tests.ts index 58604dc1a6..48762f9e9c 100644 --- a/jquery.colorbox/jquery.colorbox-tests.ts +++ b/jquery.colorbox/jquery.colorbox-tests.ts @@ -1,5 +1,4 @@ /// -/// //Image gallery var gallery : JQuery = $('a.gallery').colorbox({ rel: 'gal' }); diff --git a/jquery.colorpicker/jquery.colorpicker-tests.ts b/jquery.colorpicker/jquery.colorpicker-tests.ts index 6400b5b897..707e2dd7f9 100644 --- a/jquery.colorpicker/jquery.colorpicker-tests.ts +++ b/jquery.colorpicker/jquery.colorpicker-tests.ts @@ -1,4 +1,3 @@ -/// /// // Default options copied from the source diff --git a/jquery.cookie/jquery.cookie-tests.ts b/jquery.cookie/jquery.cookie-tests.ts index ffba157046..e93d29110c 100644 --- a/jquery.cookie/jquery.cookie-tests.ts +++ b/jquery.cookie/jquery.cookie-tests.ts @@ -1,5 +1,4 @@ -/// -/// +/// class TestObject { text: string; diff --git a/jquery.cycle/jquery.cycle-tests.ts b/jquery.cycle/jquery.cycle-tests.ts index 49adb64c27..e93be101f6 100644 --- a/jquery.cycle/jquery.cycle-tests.ts +++ b/jquery.cycle/jquery.cycle-tests.ts @@ -1,5 +1,4 @@ /// -/// // As basic as it can be $('#element').cycle(); diff --git a/jquery.cycle2/jquery.cycle2-tests.ts b/jquery.cycle2/jquery.cycle2-tests.ts index e7ed497697..0e16629a3e 100644 --- a/jquery.cycle2/jquery.cycle2-tests.ts +++ b/jquery.cycle2/jquery.cycle2-tests.ts @@ -1,5 +1,4 @@ /// -/// // basic $('#element').cycle(); diff --git a/jquery.fancytree/jquery.fancytree-tests.ts b/jquery.fancytree/jquery.fancytree-tests.ts index f0497ec702..8e1c4a1603 100644 --- a/jquery.fancytree/jquery.fancytree-tests.ts +++ b/jquery.fancytree/jquery.fancytree-tests.ts @@ -1,6 +1,4 @@ -/// - -$("#tree").fancytree({ +$("#tree").fancytree({ source: [ { title: "Node 1", key: "1" }, { diff --git a/jquery.finger/jquery.finger-tests.ts b/jquery.finger/jquery.finger-tests.ts index d32cbd0649..f0e8457dbf 100644 --- a/jquery.finger/jquery.finger-tests.ts +++ b/jquery.finger/jquery.finger-tests.ts @@ -1,5 +1,4 @@ /// -/// $.Finger.doubleTapInterval = 400; $.Finger.flickDuration = 250; diff --git a/jquery.form/jquery.form-tests.ts b/jquery.form/jquery.form-tests.ts index e94ff94407..f115a97f57 100644 --- a/jquery.form/jquery.form-tests.ts +++ b/jquery.form/jquery.form-tests.ts @@ -1,5 +1,4 @@ /// -/// // Basic usage diff --git a/jquery.fullscreen/jquery.fullscreen-tests.ts b/jquery.fullscreen/jquery.fullscreen-tests.ts index 39d686a873..4dc2147359 100644 --- a/jquery.fullscreen/jquery.fullscreen-tests.ts +++ b/jquery.fullscreen/jquery.fullscreen-tests.ts @@ -1,5 +1,3 @@ -/// - // // Examples from https://github.com/kayahr/jquery-fullscreen-plugin // diff --git a/jquery.jnotify/jquery.jnotify-tests.ts b/jquery.jnotify/jquery.jnotify-tests.ts index 29e206b42d..b5ad3927e2 100644 --- a/jquery.jnotify/jquery.jnotify-tests.ts +++ b/jquery.jnotify/jquery.jnotify-tests.ts @@ -1,5 +1,4 @@ /// -/// $(document).ready(function () { $('#StatusBar').jnotifyInizialize({ diff --git a/jquery.jsignature/jquery.jsignature-tests.ts b/jquery.jsignature/jquery.jsignature-tests.ts index 778af1f844..5ec4bc486d 100644 --- a/jquery.jsignature/jquery.jsignature-tests.ts +++ b/jquery.jsignature/jquery.jsignature-tests.ts @@ -1,5 +1,4 @@ /// -/// /* * Taken from the tests section on jSignature diff --git a/jquery.livestampjs/jquery.livestampjs-tests.ts b/jquery.livestampjs/jquery.livestampjs-tests.ts index e9900f60f7..bfa3937f97 100644 --- a/jquery.livestampjs/jquery.livestampjs-tests.ts +++ b/jquery.livestampjs/jquery.livestampjs-tests.ts @@ -1,7 +1,5 @@ -// Tests for Livestamp.js type definitions /// -/// -/// +/// $('#test1').livestamp(new Date('June 18, 1987')); $('#test2').livestamp(1362282933); diff --git a/jquery.placeholder/jquery.placeholder-tests.ts b/jquery.placeholder/jquery.placeholder-tests.ts index 45af39d292..edaf3ea111 100644 --- a/jquery.placeholder/jquery.placeholder-tests.ts +++ b/jquery.placeholder/jquery.placeholder-tests.ts @@ -1,5 +1,4 @@ /// -/// $('input').placeholder(); diff --git a/jquery.qrcode/jquery.qrcode-tests.ts b/jquery.qrcode/jquery.qrcode-tests.ts index 91db4ed3c3..a634bd6f07 100644 --- a/jquery.qrcode/jquery.qrcode-tests.ts +++ b/jquery.qrcode/jquery.qrcode-tests.ts @@ -1,5 +1,4 @@ /// -/// // Examples from website (note: the examples use color instead of fill, which is not supported) $('.container').qrcode(); diff --git a/jquery.rowGrid/jquery.rowGrid-tests.ts b/jquery.rowGrid/jquery.rowGrid-tests.ts index 6adc8b38cf..ba3e5f822d 100644 --- a/jquery.rowGrid/jquery.rowGrid-tests.ts +++ b/jquery.rowGrid/jquery.rowGrid-tests.ts @@ -1,5 +1,4 @@ /// -/// /* * Test different options diff --git a/jquery.scrollTo/jquery.scrollTo-tests.ts b/jquery.scrollTo/jquery.scrollTo-tests.ts index adf9301a5f..303ce0cd01 100644 --- a/jquery.scrollTo/jquery.scrollTo-tests.ts +++ b/jquery.scrollTo/jquery.scrollTo-tests.ts @@ -1,5 +1,4 @@ /// -/// $('div').scrollTo(340); diff --git a/jquery.simplePagination/jquery.simplePagination-tests.ts b/jquery.simplePagination/jquery.simplePagination-tests.ts index 891af58ba5..b35a6f42a0 100644 --- a/jquery.simplePagination/jquery.simplePagination-tests.ts +++ b/jquery.simplePagination/jquery.simplePagination-tests.ts @@ -1,5 +1,4 @@ /// -/// var selector = '#elementId'; diff --git a/jquery.simplemodal/jquery.simplemodal-tests.ts b/jquery.simplemodal/jquery.simplemodal-tests.ts index 5079d8619d..8e73e057cc 100644 --- a/jquery.simplemodal/jquery.simplemodal-tests.ts +++ b/jquery.simplemodal/jquery.simplemodal-tests.ts @@ -1,7 +1,6 @@ // Tests taken from documentation: http://www.ericmmartin.com/projects/simplemodal/ /// -/// // Chained call with no options $("#sample").modal(); diff --git a/jquery.simulate/jquery.simulate-tests.ts b/jquery.simulate/jquery.simulate-tests.ts index 98de970342..774c471fb6 100644 --- a/jquery.simulate/jquery.simulate-tests.ts +++ b/jquery.simulate/jquery.simulate-tests.ts @@ -1,5 +1,3 @@ -/// - var $element = $("body"); $element.simulate("click"); diff --git a/jquery.slimScroll/jquery.SlimScroll-tests.ts b/jquery.slimScroll/jquery.SlimScroll-tests.ts index 00534b2960..1a997232fa 100644 --- a/jquery.slimScroll/jquery.SlimScroll-tests.ts +++ b/jquery.slimScroll/jquery.SlimScroll-tests.ts @@ -1,5 +1,4 @@ /// -/// $("div").slimScroll(); diff --git a/jquery.soap/jquery.soap-tests.ts b/jquery.soap/jquery.soap-tests.ts index acef40d8cd..519f1cbae4 100644 --- a/jquery.soap/jquery.soap-tests.ts +++ b/jquery.soap/jquery.soap-tests.ts @@ -1,5 +1,3 @@ -/// - $.soap({ url: 'http://my.server.com/soapservices/', method: 'helloWorld', diff --git a/jquery.tile/jquery.tile-tests.ts b/jquery.tile/jquery.tile-tests.ts index e4f63a0a7f..e9c4aaa6e5 100644 --- a/jquery.tile/jquery.tile-tests.ts +++ b/jquery.tile/jquery.tile-tests.ts @@ -1,5 +1,3 @@ -/// - $('div').tile(); $('div').tile(4); diff --git a/jquery.timeago/jquery.timeago-tests.ts b/jquery.timeago/jquery.timeago-tests.ts index 5a0214720d..86abc6fe59 100644 --- a/jquery.timeago/jquery.timeago-tests.ts +++ b/jquery.timeago/jquery.timeago-tests.ts @@ -1,5 +1,4 @@ /// -/// // Basic usage diff --git a/jquery.timepicker/jquery.timepicker-tests.ts b/jquery.timepicker/jquery.timepicker-tests.ts index 6336f864c7..cbb14dfe7c 100644 --- a/jquery.timepicker/jquery.timepicker-tests.ts +++ b/jquery.timepicker/jquery.timepicker-tests.ts @@ -1,5 +1,4 @@ /// -/// var beforeShowCallback, onSelectCallback, onCloseCallback, onHourShow, onMinuteShow; $('#timepicker').timepicker({ diff --git a/jquery.tipsy/jquery.tipsy-tests.ts b/jquery.tipsy/jquery.tipsy-tests.ts index 121b4d91cd..e307e5d364 100644 --- a/jquery.tipsy/jquery.tipsy-tests.ts +++ b/jquery.tipsy/jquery.tipsy-tests.ts @@ -1,5 +1,4 @@ /// -/// // basic $('#example-1').tipsy(); diff --git a/jquery.total-storage/jquery.total-storage-tests.ts b/jquery.total-storage/jquery.total-storage-tests.ts index 613e5ab704..0a23dd67cf 100644 --- a/jquery.total-storage/jquery.total-storage-tests.ts +++ b/jquery.total-storage/jquery.total-storage-tests.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// //direct call $.totalStorage("test_key1", "test_value"); diff --git a/jquery.transit/jquery.transit-tests.ts b/jquery.transit/jquery.transit-tests.ts index 0dbcf990db..2a672ec979 100644 --- a/jquery.transit/jquery.transit-tests.ts +++ b/jquery.transit/jquery.transit-tests.ts @@ -1,6 +1,4 @@ /// -/// - class TransitOptions implements JQueryTransitOptions { opacity: number; diff --git a/jquery.watermark/jquery.watermark-tests.ts b/jquery.watermark/jquery.watermark-tests.ts index 750eacc2a3..225ba0a482 100644 --- a/jquery.watermark/jquery.watermark-tests.ts +++ b/jquery.watermark/jquery.watermark-tests.ts @@ -1,6 +1,4 @@ /// -/// - $('#inputId').watermark('Required information'); $('#inputId').watermark('Required information', { className: 'myClassName' }); diff --git a/jquery.window/jquery.window-tests.ts b/jquery.window/jquery.window-tests.ts index 713c29a01b..4b1b9b6eb2 100644 --- a/jquery.window/jquery.window-tests.ts +++ b/jquery.window/jquery.window-tests.ts @@ -1,5 +1,4 @@ /// -/// function example_1() { $.window({ diff --git a/js-cookie/js-cookie-tests.ts b/js-cookie/js-cookie-tests.ts index 819f42903a..2b5dfc8a5e 100644 --- a/js-cookie/js-cookie-tests.ts +++ b/js-cookie/js-cookie-tests.ts @@ -1,5 +1,3 @@ -/// - // Create a cookie, valid across the entire site Cookies.set('name', 'value'); diff --git a/js-schema/js-schema-tests.ts b/js-schema/js-schema-tests.ts index 4a9a33e58f..bb5098a434 100644 --- a/js-schema/js-schema-tests.ts +++ b/js-schema/js-schema-tests.ts @@ -1,5 +1,3 @@ -/// - import {default as schema} from 'js-schema'; var Duck = schema({ // A duck diff --git a/jsdeferred/jsdeferred-tests.ts b/jsdeferred/jsdeferred-tests.ts index 57ddfcc522..3b0d39ec2e 100644 --- a/jsdeferred/jsdeferred-tests.ts +++ b/jsdeferred/jsdeferred-tests.ts @@ -1,5 +1,3 @@ -/// - declare function alert(a: any): void; interface IHttp { diff --git a/jsen/jsen-tests.ts b/jsen/jsen-tests.ts index 9957a01200..aed6db6246 100644 --- a/jsen/jsen-tests.ts +++ b/jsen/jsen-tests.ts @@ -1,5 +1,3 @@ -/// - import jsen = require("jsen"); import JsenSettings = Jsen.JsenSettings; diff --git a/jsoneditoronline/jsoneditoronline-tests.ts b/jsoneditoronline/jsoneditoronline-tests.ts index a011aa20c7..ecb37b595a 100644 --- a/jsoneditoronline/jsoneditoronline-tests.ts +++ b/jsoneditoronline/jsoneditoronline-tests.ts @@ -1,5 +1,4 @@ // Tests for JSONEditorOnline type definitions -/// var container: HTMLElement; diff --git a/jsrender/jsrender-tests.ts b/jsrender/jsrender-tests.ts index a9cc752851..d728f968ae 100644 --- a/jsrender/jsrender-tests.ts +++ b/jsrender/jsrender-tests.ts @@ -1,5 +1,4 @@ /// -/// $.views.converters("upper", function(val) { return val.toUpperCase(); diff --git a/jszip/jszip-tests.ts b/jszip/jszip-tests.ts index 514beb5012..1e283e6d68 100644 --- a/jszip/jszip-tests.ts +++ b/jszip/jszip-tests.ts @@ -1,5 +1,3 @@ -/// - var SEVERITY = { DEBUG: 0, INFO: 1, diff --git a/keypress/keypress-tests.ts b/keypress/keypress-tests.ts index fbe9124e7a..d5e0ec58ce 100644 --- a/keypress/keypress-tests.ts +++ b/keypress/keypress-tests.ts @@ -1,5 +1,3 @@ -/// - namespace KeypressComboTests { var listener = new window.keypress.Listener(); diff --git a/kineticjs/kineticjs-tests.ts b/kineticjs/kineticjs-tests.ts index 5b0077c433..4176067eb3 100644 --- a/kineticjs/kineticjs-tests.ts +++ b/kineticjs/kineticjs-tests.ts @@ -1,5 +1,3 @@ -/// - // http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-rect-tutorial/ namespace RectTutorial { var stage = new Kinetic.Stage({ diff --git a/knex/knex-tests.ts b/knex/knex-tests.ts index 4783a14d17..da072ef2dc 100644 --- a/knex/knex-tests.ts +++ b/knex/knex-tests.ts @@ -1,7 +1,6 @@ - -/// import Knex = require('knex'); import _ = require('lodash'); + 'use strict'; // Initializing the Library var knex = Knex({ diff --git a/knockback/index.d.ts b/knockback/index.d.ts index 66e178b5b0..69f5501d29 100644 --- a/knockback/index.d.ts +++ b/knockback/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare namespace Knockback { interface EventWatcherOptions { diff --git a/knockout.rx/knockout.rx-tests.ts b/knockout.rx/knockout.rx-tests.ts index 21a0a52484..3c34f54433 100644 --- a/knockout.rx/knockout.rx-tests.ts +++ b/knockout.rx/knockout.rx-tests.ts @@ -1,5 +1,3 @@ -/// - var ax: Rx.Observable; var ao = ax.toKoObservable(); diff --git a/knockout/all-tests.ts b/knockout/all-tests.ts index 3fe7a471f1..1890561ac8 100644 --- a/knockout/all-tests.ts +++ b/knockout/all-tests.ts @@ -1,2 +1,3 @@ +/// /// /// diff --git a/knockout/tests/knockout-templatingBehaviors-tests.ts b/knockout/tests/knockout-templatingBehaviors-tests.ts index cc9035e86c..58ddfcf3bd 100644 --- a/knockout/tests/knockout-templatingBehaviors-tests.ts +++ b/knockout/tests/knockout-templatingBehaviors-tests.ts @@ -1,6 +1,4 @@ /// - - /// var dummyTemplateEngine = function (templates?) { diff --git a/kolite/index.d.ts b/kolite/index.d.ts index 80fe6e8278..0a620aa363 100644 --- a/kolite/index.d.ts +++ b/kolite/index.d.ts @@ -3,7 +3,6 @@ // Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - - - +/// +/// +/// diff --git a/kolite/kolite-tests.ts b/kolite/kolite-tests.ts index 6df3be4a70..378a56092a 100644 --- a/kolite/kolite-tests.ts +++ b/kolite/kolite-tests.ts @@ -1,7 +1,6 @@ /// /// - function test_asyncCommand() { var saveCmd = ko.asyncCommand({ execute: function (complete) { diff --git a/later/later-tests.ts b/later/later-tests.ts index 6bf2646107..d77dbf1d56 100644 --- a/later/later-tests.ts +++ b/later/later-tests.ts @@ -1,7 +1,4 @@ -/// - - -namespace LaterTest_DefineSchedule { +namespace LaterTest_DefineSchedule { // define a new schedule var textSched = later.parse.text('at 10:15am every weekday'); diff --git a/lestate/lestate-tests.ts b/lestate/lestate-tests.ts index 9a007c68d2..05b5a5cf7c 100644 --- a/lestate/lestate-tests.ts +++ b/lestate/lestate-tests.ts @@ -1,5 +1,3 @@ -/// - let State = LeState.createState() State.set({ diff --git a/linq/linq-tests.ts b/linq/linq-tests.ts index edfa61b84f..34265c6893 100644 --- a/linq/linq-tests.ts +++ b/linq/linq-tests.ts @@ -1,6 +1,4 @@ /// -/// -// tests were run from VisualStudio + Resharper7 describe("Linq.js tests", function () { it("Projection and Filtering Methods", function () { diff --git a/lobibox/lobibox-tests.ts b/lobibox/lobibox-tests.ts index 71f4d8aed8..783bb2f8b9 100644 --- a/lobibox/lobibox-tests.ts +++ b/lobibox/lobibox-tests.ts @@ -1,8 +1,7 @@ /** * Created by itboy on 11/22/2015. */ - /// - /// +/// //Run test : LobiboxTest.test() after window load event diff --git a/lodash-decorators/index.d.ts b/lodash-decorators/index.d.ts index 0e9cf948f3..0e0b8d9e3c 100644 --- a/lodash-decorators/index.d.ts +++ b/lodash-decorators/index.d.ts @@ -3,8 +3,7 @@ // Definitions by: Qubo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - +/// declare module "lodash-decorators" { // Originally copied from ../node_modules/typescript/lib/lib.es6.d.ts diff --git a/lodash-decorators/lodash-decorators-tests.ts b/lodash-decorators/lodash-decorators-tests.ts index baa4c8fd11..e22d6911f3 100644 --- a/lodash-decorators/lodash-decorators-tests.ts +++ b/lodash-decorators/lodash-decorators-tests.ts @@ -1,6 +1,3 @@ - -/// - // // With Arguments // diff --git a/logg/logg-tests.ts b/logg/logg-tests.ts index 3569d3caa3..c41f823034 100644 --- a/logg/logg-tests.ts +++ b/logg/logg-tests.ts @@ -1,5 +1,3 @@ -/// - import logging = require("logg"); var logger = logging.getLogger('my.class'); diff --git a/lovefield/lovefield-tests.ts b/lovefield/lovefield-tests.ts index b9bc73a82c..3e239d6f93 100644 --- a/lovefield/lovefield-tests.ts +++ b/lovefield/lovefield-tests.ts @@ -1,5 +1,3 @@ -/// - function main(): void { var schemaBuilder: lf.schema.Builder = lf.schema.create('todo', 1); diff --git a/magicsuggest/magicsuggest-tests.ts b/magicsuggest/magicsuggest-tests.ts index f120c659fe..ab76034122 100644 --- a/magicsuggest/magicsuggest-tests.ts +++ b/magicsuggest/magicsuggest-tests.ts @@ -1,5 +1,4 @@ /// -/// function basicTest() { $('#magicSuggest').magicSuggest(); diff --git a/mailcheck/mailcheck-tests.ts b/mailcheck/mailcheck-tests.ts index f323ef68eb..07fc473893 100644 --- a/mailcheck/mailcheck-tests.ts +++ b/mailcheck/mailcheck-tests.ts @@ -1,5 +1,4 @@ /// -/// import MC = require('mailcheck'); diff --git a/maildev/maildev-tests.ts b/maildev/maildev-tests.ts index 62c324c5e2..153cc18f0d 100644 --- a/maildev/maildev-tests.ts +++ b/maildev/maildev-tests.ts @@ -1,5 +1,3 @@ -/// - import MailDev = require("maildev") var options: MailDevOptions = {smtp: 1025}; diff --git a/markerclustererplus/index.d.ts b/markerclustererplus/index.d.ts index afb808e177..ffc231053b 100644 --- a/markerclustererplus/index.d.ts +++ b/markerclustererplus/index.d.ts @@ -3,8 +3,7 @@ // Definitions by: Mathias Rodriguez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// +/// /** * This class represents the object for values in the styles array passed diff --git a/markerclustererplus/markerclustererplus-tests.ts b/markerclustererplus/markerclustererplus-tests.ts index c8ec880190..ccdbd72f98 100644 --- a/markerclustererplus/markerclustererplus-tests.ts +++ b/markerclustererplus/markerclustererplus-tests.ts @@ -1,6 +1,3 @@ -/// - - namespace MarkerClusterApp { export function simple_test() { var center = new google.maps.LatLng(37.4419, -122.1419); diff --git a/maskedinput/maskedinput-tests.ts b/maskedinput/maskedinput-tests.ts index cea1bab744..766eda8f9b 100644 --- a/maskedinput/maskedinput-tests.ts +++ b/maskedinput/maskedinput-tests.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// $("#test").mask("9:000"); $("#test").mask("9:000", { numeric: true }); diff --git a/material-ui/material-ui-tests.tsx b/material-ui/material-ui-tests.tsx index 3e73d31891..d97fe87623 100644 --- a/material-ui/material-ui-tests.tsx +++ b/material-ui/material-ui-tests.tsx @@ -1,6 +1,5 @@ /// /// -/// import * as React from "react"; import * as LinkedStateMixin from "react-addons-linked-state-mixin"; diff --git a/mathjax/mathjax-tests.ts b/mathjax/mathjax-tests.ts index 482f779894..c5329fb26a 100644 --- a/mathjax/mathjax-tests.ts +++ b/mathjax/mathjax-tests.ts @@ -1,4 +1,3 @@ -/// MathJax.Hub.Config({ config: ["MMLorHTML.js"], jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML"], diff --git a/matter-js/matter-js-tests.ts b/matter-js/matter-js-tests.ts index 410a9eceab..b6c8b01a83 100644 --- a/matter-js/matter-js-tests.ts +++ b/matter-js/matter-js-tests.ts @@ -1,5 +1,3 @@ -/// - var Engine = Matter.Engine, World = Matter.World, Body = Matter.Body, diff --git a/mendixmodelsdk/mendixmodelsdk-tests.ts b/mendixmodelsdk/mendixmodelsdk-tests.ts index 4598e8ada7..ac550e465e 100644 --- a/mendixmodelsdk/mendixmodelsdk-tests.ts +++ b/mendixmodelsdk/mendixmodelsdk-tests.ts @@ -1,8 +1,5 @@ -/// - import {domainmodels, IModel, ModelSdkClient} from "mendixmodelsdk"; - // This doesn't do anything useful, just for testing typings... const client: ModelSdkClient = new ModelSdkClient({ diff --git a/messenger/messenger-tests.ts b/messenger/messenger-tests.ts index 1f560e6e2d..be555a2767 100644 --- a/messenger/messenger-tests.ts +++ b/messenger/messenger-tests.ts @@ -1,5 +1,3 @@ -/// - var message = Messenger().post({ message: "message", hideAfter: 5, diff --git a/meteor/meteor-tests.ts b/meteor/meteor-tests.ts index bc877bdea0..a6a07cd4cd 100644 --- a/meteor/meteor-tests.ts +++ b/meteor/meteor-tests.ts @@ -1,5 +1,3 @@ -/// - /** * All code below was copied from the examples at http://docs.meteor.com/. * When necessary, code was added to make the examples work (e.g. declaring a variable diff --git a/metismenu/metismenu-tests.ts b/metismenu/metismenu-tests.ts index 0e4bc72a18..b2e36f1d53 100644 --- a/metismenu/metismenu-tests.ts +++ b/metismenu/metismenu-tests.ts @@ -1,5 +1,4 @@ /// -/// $('#menu').metisMenu(); $('.metismenu').metisMenu({toggle: false}); diff --git a/milkcocoa/milkcocoa-tests.ts b/milkcocoa/milkcocoa-tests.ts index 2a34b4e1b7..cbb58c9c8e 100644 --- a/milkcocoa/milkcocoa-tests.ts +++ b/milkcocoa/milkcocoa-tests.ts @@ -1,4 +1,3 @@ -/// var mk = new MilkCocoa("hostAddress"); mk.addAccount("sample@test.com", "password", null, (err: MilkCocoa.Error.AddAccount, user: milkcocoa.User) => { diff --git a/minilog/minilog-tests.ts b/minilog/minilog-tests.ts index c04f936e80..dfebc67ba1 100644 --- a/minilog/minilog-tests.ts +++ b/minilog/minilog-tests.ts @@ -3,8 +3,6 @@ // Definitions by: Guido // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - //Following are example snippets from mixu.net/minilog diff --git a/mobservable/mobservable-tests.ts b/mobservable/mobservable-tests.ts index 2966128fee..07088d5d87 100644 --- a/mobservable/mobservable-tests.ts +++ b/mobservable/mobservable-tests.ts @@ -1,4 +1,3 @@ -/// import mobservable = require('mobservable'); import {observable} from "mobservable"; diff --git a/mousetrap/mousetrap-tests.ts b/mousetrap/mousetrap-tests.ts index 3d3c71e58e..8395b71067 100644 --- a/mousetrap/mousetrap-tests.ts +++ b/mousetrap/mousetrap-tests.ts @@ -1,5 +1,4 @@ /// -/// Mousetrap.bind('4', function() { console.log('4'); }); Mousetrap.bind("?", function() { console.log('show shortcuts!'); }); diff --git a/moviedb/moviedb-tests.ts b/moviedb/moviedb-tests.ts index 4e75b629c4..ae2e66d3d3 100644 --- a/moviedb/moviedb-tests.ts +++ b/moviedb/moviedb-tests.ts @@ -1,6 +1,3 @@ - -/// - import moviedb = require('moviedb'); export class TmbdMovieScanner { diff --git a/ng-i18next/index.d.ts b/ng-i18next/index.d.ts index 76ccf68187..a63590d4fa 100644 --- a/ng-i18next/index.d.ts +++ b/ng-i18next/index.d.ts @@ -3,10 +3,10 @@ // Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.i18next { interface I18nextProvider { - options: I18nextOptions; + options: any; } } diff --git a/noVNC/noVNC-tests.ts b/noVNC/noVNC-tests.ts index 238cbce1ff..b8a1f7fd63 100644 --- a/noVNC/noVNC-tests.ts +++ b/noVNC/noVNC-tests.ts @@ -1,5 +1,3 @@ -/// - Util.load_scripts(["webutil.js", "base64.js", "websock.js", "des.js", "input.js", "display.js", "jsunzip.js", "rfb.js"]); diff --git a/node-fibers/node-fibers-tests.ts b/node-fibers/node-fibers-tests.ts index 8184866216..34bf388d79 100644 --- a/node-fibers/node-fibers-tests.ts +++ b/node-fibers/node-fibers-tests.ts @@ -1,4 +1,3 @@ -/// // node-fibers tests // compile with --module=common diff --git a/node-mysql-wrapper/index.d.ts b/node-mysql-wrapper/index.d.ts index 532f16453a..7785d8a7b4 100644 --- a/node-mysql-wrapper/index.d.ts +++ b/node-mysql-wrapper/index.d.ts @@ -3,12 +3,8 @@ // Definitions by: Makis Maropoulos // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// /// - - import * as Mysql from 'mysql'; import * as Promise from 'bluebird'; import {EventEmitter} from 'events'; diff --git a/node-uuid/index.d.ts b/node-uuid/index.d.ts index 78443a7643..84c6c2521b 100644 --- a/node-uuid/index.d.ts +++ b/node-uuid/index.d.ts @@ -5,32 +5,57 @@ /// +export as namespace uuid; +export interface UUIDOptions { -/** - * Definitions for use in node environment - * - * !! For browser enviroments, use node-uuid-global or node-uuid-cjs - */ -declare module __NodeUUID { /** - * Overloads for node environment - * We need to duplicate some declarations because - * interface merging doesn't work with overloads + * Node id as Array of 6 bytes (per 4.1.6). + * Default: Randomly generated ID. See note 1. */ - interface UUID { - v1(options?: UUIDOptions): string; - v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; - v1(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; + node?: any[]; - v4(options?: UUIDOptions): string; - v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; - v4(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; + /** + * (Number between 0 - 0x3fff) RFC clock sequence. + * Default: An internally maintained clockseq is used. + */ + clockseq?: number; - parse(id: string, buffer?: number[], offset?: number): number[]; - parse(id: string, buffer?: Buffer, offset?: number): Buffer; + /** + * (Number | Date) Time in milliseconds since unix Epoch. + * Default: The current time is used. + */ + msecs?: number|Date; - unparse(buffer: number[], offset?: number): string; - unparse(buffer: Buffer, offset?: number): string; - } + /** + * (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if msecs is unspecified. + * Default: internal uuid counter is used, as per 4.2.1.2. + */ + nsecs?: number; } + +export interface UUID { + v1(options?: UUIDOptions): string; + v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + + v4(options?: UUIDOptions): string; + v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + + parse(id: string, buffer?: number[], offset?: number): number[]; + + unparse(buffer: number[], offset?: number): string; +} + +export function v1(options?: UUIDOptions): string; +export function v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; +export function v1(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; + +export function v4(options?: UUIDOptions): string; +export function v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; +export function v4(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; + +export function parse(id: string, buffer?: number[], offset?: number): number[]; +export function parse(id: string, buffer?: Buffer, offset?: number): Buffer; + +export function unparse(buffer: number[], offset?: number): string; +export function unparse(buffer: Buffer, offset?: number): string; diff --git a/node-uuid/node-uuid-base.d.ts b/node-uuid/node-uuid-base.d.ts deleted file mode 100644 index fc59e9c762..0000000000 --- a/node-uuid/node-uuid-base.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Type definitions for node-uuid.js -// Project: https://github.com/broofa/node-uuid -// Definitions by: Jeff May -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** Common definitions for all environments */ -declare namespace __NodeUUID { - interface UUIDOptions { - - /** - * Node id as Array of 6 bytes (per 4.1.6). - * Default: Randomly generated ID. See note 1. - */ - node?: any[]; - - /** - * (Number between 0 - 0x3fff) RFC clock sequence. - * Default: An internally maintained clockseq is used. - */ - clockseq?: number; - - /** - * (Number | Date) Time in milliseconds since unix Epoch. - * Default: The current time is used. - */ - msecs?: number|Date; - - /** - * (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if msecs is unspecified. - * Default: internal uuid counter is used, as per 4.2.1.2. - */ - nsecs?: number; - } - - interface UUID { - v1(options?: UUIDOptions): string; - v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; - - v4(options?: UUIDOptions): string; - v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; - - parse(id: string, buffer?: number[], offset?: number): number[]; - - unparse(buffer: number[], offset?: number): string; - } -} diff --git a/node-uuid/node-uuid-cjs.d.ts b/node-uuid/node-uuid-cjs.d.ts deleted file mode 100644 index 192724bd00..0000000000 --- a/node-uuid/node-uuid-cjs.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for node-uuid.js -// Project: https://github.com/broofa/node-uuid -// Definitions by: Jeff May -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - - -/** - * Expose as CommonJS module - * For use in node environment or browser environment (using webpack or other module loaders) - */ -declare module "node-uuid" { - var uuid: __NodeUUID.UUID; - export = uuid; -} \ No newline at end of file diff --git a/node-uuid/node-uuid-global.d.ts b/node-uuid/node-uuid-global.d.ts deleted file mode 100644 index aa2bda1715..0000000000 --- a/node-uuid/node-uuid-global.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for node-uuid.js -// Project: https://github.com/broofa/node-uuid -// Definitions by: Jeff May -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - - -/** Expose as global variable */ -declare var uuid: __NodeUUID.UUID; diff --git a/node-uuid/node-uuid-tests.ts b/node-uuid/node-uuid-tests.ts index 88a70c3760..21373a7a42 100644 --- a/node-uuid/node-uuid-tests.ts +++ b/node-uuid/node-uuid-tests.ts @@ -5,7 +5,7 @@ import nodeUuid = require('node-uuid'); var uid1: string = nodeUuid.v1(); var uid4: string = nodeUuid.v4(); -var options: __NodeUUID.UUIDOptions = { +var options: nodeUuid.UUIDOptions = { node: [], clockseq: 2, nsecs: 3, diff --git a/node-validator/node-validator-tests.ts b/node-validator/node-validator-tests.ts index 8f45c1685f..843c95ce8b 100644 --- a/node-validator/node-validator-tests.ts +++ b/node-validator/node-validator-tests.ts @@ -1,5 +1,3 @@ -/// - import { run, isObject, isString, isIsoDate, isArray } from 'node-validator'; let checkChild = isObject() diff --git a/nodemailer-direct-transport/index.d.ts b/nodemailer-direct-transport/index.d.ts index 04101b685f..1f4017d5b6 100644 --- a/nodemailer-direct-transport/index.d.ts +++ b/nodemailer-direct-transport/index.d.ts @@ -3,10 +3,7 @@ // Definitions by: Rogier Schouten // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - - +import * as nodemailer from 'nodemailer'; declare namespace directTransport { diff --git a/nodemailer-pickup-transport/index.d.ts b/nodemailer-pickup-transport/index.d.ts index 6577cd7cf3..b14110a4cd 100644 --- a/nodemailer-pickup-transport/index.d.ts +++ b/nodemailer-pickup-transport/index.d.ts @@ -3,9 +3,7 @@ // Definitions by: Peter Snider // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - - +import nodemailer = require('nodemailer'); declare namespace PickupTransport { export interface Options { diff --git a/nodemailer-smtp-pool/index.d.ts b/nodemailer-smtp-pool/index.d.ts index 8b21eced18..02d0c02b90 100644 --- a/nodemailer-smtp-pool/index.d.ts +++ b/nodemailer-smtp-pool/index.d.ts @@ -4,10 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// - import tls = require("tls"); +import nodemailer = require("nodemailer"); declare namespace smtpPool { diff --git a/nodemailer-smtp-transport/index.d.ts b/nodemailer-smtp-transport/index.d.ts index 92866720ce..29f156494d 100644 --- a/nodemailer-smtp-transport/index.d.ts +++ b/nodemailer-smtp-transport/index.d.ts @@ -4,11 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// - - import tls = require("tls"); +import nodemailer = require('nodemailer'); declare namespace smtpTransport { export interface AuthOptions { diff --git a/nodemailer/index.d.ts b/nodemailer/index.d.ts index 19295894ad..27dda32673 100644 --- a/nodemailer/index.d.ts +++ b/nodemailer/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// - +/// import directTransport = require("nodemailer-direct-transport"); import smtpTransport = require("nodemailer-smtp-transport"); diff --git a/noisejs/noisejs-tests.ts b/noisejs/noisejs-tests.ts index 10c6a68bcf..31e18403c6 100644 --- a/noisejs/noisejs-tests.ts +++ b/noisejs/noisejs-tests.ts @@ -1,5 +1,3 @@ -/// - var noise = new Noise(Math.random()); var simplex2_noise_val = noise.simplex2(0.1, 0.2); diff --git a/notie/notie-tests.ts b/notie/notie-tests.ts index f1e78c2a59..05b1edf096 100644 --- a/notie/notie-tests.ts +++ b/notie/notie-tests.ts @@ -1,5 +1,3 @@ -/// - notie.alert(1, 'Success!', 1.5); notie.alert(2, 'Warning
with
HTML
included.', 2); notie.alert(3, 'Error.', 2.5); diff --git a/nprogress/NProgress-tests.ts b/nprogress/NProgress-tests.ts index 3d07cafa2b..08bdb8ae28 100644 --- a/nprogress/NProgress-tests.ts +++ b/nprogress/NProgress-tests.ts @@ -1,5 +1,3 @@ -/// - function test_basics() { NProgress.start(); NProgress.inc(); diff --git a/obelisk.js/obelisk.js-tests.ts b/obelisk.js/obelisk.js-tests.ts index bc706cec8d..e47b474467 100644 --- a/obelisk.js/obelisk.js-tests.ts +++ b/obelisk.js/obelisk.js-tests.ts @@ -1,5 +1,3 @@ -/// - function test_brick() { var canvas = document.getElementById('canvas-demo'); diff --git a/orchestrator/orchestrator-tests.ts b/orchestrator/orchestrator-tests.ts index bbf27a103d..4897a875e6 100644 --- a/orchestrator/orchestrator-tests.ts +++ b/orchestrator/orchestrator-tests.ts @@ -1,6 +1,3 @@ -/// - - 'use strict'; import Orchestrator = require('orchestrator'); @@ -30,7 +27,7 @@ orchestrator.add('thing2', function(callback: any){ }); -var Q = require('q'); +import Q = require('q'); orchestrator.add('thing3', function(){ var deferred = Q.defer(); diff --git a/p2/p2-tests.ts b/p2/p2-tests.ts index 63c213321c..fbc4a83fac 100644 --- a/p2/p2-tests.ts +++ b/p2/p2-tests.ts @@ -1,5 +1,3 @@ -/// - // Create a physics world, where bodies and constraints live var world = new p2.World({ gravity:[0, -9.82] diff --git a/parse/index.d.ts b/parse/index.d.ts index 5e8d34a6c8..1e8bdab69e 100644 --- a/parse/index.d.ts +++ b/parse/index.d.ts @@ -5,7 +5,7 @@ /// /// -/// +/// declare namespace Parse { diff --git a/peerjs/index.d.ts b/peerjs/index.d.ts index 4ca09fa7a2..5d41837bc7 100644 --- a/peerjs/index.d.ts +++ b/peerjs/index.d.ts @@ -3,8 +3,7 @@ // Definitions by: Toshiya Nakakura // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// +/// declare namespace PeerJs{ interface PeerJSOption{ diff --git a/phonegap-nfc/phonegap-nfc-tests.ts b/phonegap-nfc/phonegap-nfc-tests.ts index ddaabebce7..d203c949d9 100644 --- a/phonegap-nfc/phonegap-nfc-tests.ts +++ b/phonegap-nfc/phonegap-nfc-tests.ts @@ -1,5 +1,3 @@ -/// - import nfc = require('nfc'); import ndef = require('ndef'); import NdefRecord = PhoneGapNfc.NdefRecord; diff --git a/pickadate/pickadate-tests.ts b/pickadate/pickadate-tests.ts index 21bc5b074f..837b69511f 100644 --- a/pickadate/pickadate-tests.ts +++ b/pickadate/pickadate-tests.ts @@ -1,5 +1,3 @@ -/// - // Date picker tests from http://amsul.ca/pickadate.js/date/ $('.datepicker').pickadate(); diff --git a/playerframework/playerFramework-tests.ts b/playerframework/playerFramework-tests.ts index 9d1d7921a9..dd146e19b3 100644 --- a/playerframework/playerFramework-tests.ts +++ b/playerframework/playerFramework-tests.ts @@ -1,6 +1,4 @@ -/// - -var el = document.createElement("div"); +var el = document.createElement("div"); var player = new PlayerFramework.MediaPlayer(el); // Getters diff --git a/pleasejs/please-tests.ts b/pleasejs/please-tests.ts index 36e5f2d3e4..d4e5db9e50 100644 --- a/pleasejs/please-tests.ts +++ b/pleasejs/please-tests.ts @@ -1,5 +1,3 @@ -/// - Please.make_color(); Please.make_color({ diff --git a/podcast/podcast-tests.ts b/podcast/podcast-tests.ts index c8989d7a86..8b19ac631f 100644 --- a/podcast/podcast-tests.ts +++ b/podcast/podcast-tests.ts @@ -1,5 +1,3 @@ -/// - import Podcast = require('podcast'); /* lets create an rss feed */ diff --git a/polymer-ts/polymer-ts-tests.ts b/polymer-ts/polymer-ts-tests.ts index 1347b3bb71..3a9baf0e54 100644 --- a/polymer-ts/polymer-ts-tests.ts +++ b/polymer-ts/polymer-ts-tests.ts @@ -1,7 +1,4 @@ -/// - namespace Components { - export class TestComponent extends polymer.Base { public field: string = 'foo'; diff --git a/polymer/polymer-tests.ts b/polymer/polymer-tests.ts index e7d2706c58..dcad66f871 100644 --- a/polymer/polymer-tests.ts +++ b/polymer/polymer-tests.ts @@ -1,5 +1,3 @@ -/// - Polymer({ is: "my-element", diff --git a/progressjs/progress-tests.ts b/progressjs/progress-tests.ts index e2ab62f9af..ac450a33ed 100644 --- a/progressjs/progress-tests.ts +++ b/progressjs/progress-tests.ts @@ -1,5 +1,3 @@ -/// - progressJs(); //without selector, set progress-bar for whole page progressJs("#targetElement"); //start progress-bar for element id='targetElement' diff --git a/promises-a-plus/promises-a-plus-tests.ts b/promises-a-plus/promises-a-plus-tests.ts index ec2a2b1553..b6c4060758 100644 --- a/promises-a-plus/promises-a-plus-tests.ts +++ b/promises-a-plus/promises-a-plus-tests.ts @@ -1,5 +1,4 @@ -/// -/// +/// /// /// diff --git a/qrcode-generator/qrcode-generator-tests.ts b/qrcode-generator/qrcode-generator-tests.ts index 5fbddd6e8f..55a3fe372b 100644 --- a/qrcode-generator/qrcode-generator-tests.ts +++ b/qrcode-generator/qrcode-generator-tests.ts @@ -1,5 +1,3 @@ -/// - import qrcode = require('qrcode-generator'); let qr = qrcode(4,'M'); diff --git a/quill/index.d.ts b/quill/index.d.ts index 0f75851e31..95ed5ca2c6 100644 --- a/quill/index.d.ts +++ b/quill/index.d.ts @@ -3,27 +3,27 @@ // Definitions by: Sumit // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// -declare interface DeltaStatic{ - ops? : Array; - retain?: any, - delete?: any, - insert?: any, - attributes?: any +declare interface DeltaStatic { + ops?: Array; + retain?: any, + delete?: any, + insert?: any, + attributes?: any } -declare interface RangeStatic{ - new(): RangeStatic; - start: number; - end: number; +declare interface RangeStatic { + new (): RangeStatic; + start: number; + end: number; } declare interface QuillStatic { - new(selector: string, options?: Object):QuillStatic; + new (selector: string, options?: Object): QuillStatic; on(eventName: string, callback: (delta: DeltaStatic, source: string) => void): EventEmitter2; - addModule(id: string, options: any) : Object; + addModule(id: string, options: any): Object; getText(): string; getText(start: number): string; @@ -40,7 +40,7 @@ declare interface QuillStatic { insertText(index: number, text: string): void; insertText(index: number, text: string, name: string, value: string): void; insertText(index: number, text: string, formats: any): void; - insertText(index: number, text: string, source: string) : void; + insertText(index: number, text: string, source: string): void; insertText(index: number, text: string, name: string, value: string, source: string): void; insertText(index: number, text: string, formats: any, source: string): void; @@ -102,14 +102,14 @@ declare interface QuillStatic { declare module "Range" { - var Range: RangeStatic; - export = Range; + var Range: RangeStatic; + export = Range; } declare var Delta: DeltaStatic; -declare module "Delta"{ - export = Delta; +declare module "Delta" { + export = Delta; } declare var Quill: QuillStatic; diff --git a/quill/quill-tests.ts b/quill/quill-tests.ts index 83aedd79f4..3935149349 100644 --- a/quill/quill-tests.ts +++ b/quill/quill-tests.ts @@ -1,8 +1,3 @@ - -/// - -//export var Quill = require("quill"); - function test_quill() { var quillEditor = new Quill('#editor', { diff --git a/random-js/random-js-tests.ts b/random-js/random-js-tests.ts index 7248b5a4ea..77c698e321 100644 --- a/random-js/random-js-tests.ts +++ b/random-js/random-js-tests.ts @@ -1,4 +1,3 @@ -/// /// // Examples taken from the documentation at https://github.com/ckknight/random-js diff --git a/rappid/index.d.ts b/rappid/index.d.ts index 4c57957f2d..5cbf07b995 100644 --- a/rappid/index.d.ts +++ b/rappid/index.d.ts @@ -5,33 +5,33 @@ /// -declare namespace joint{ +declare namespace joint { namespace ui { interface Handle { - name : string; - position : string; + name: string; + position: string; icon: string; } class SelectionView extends Backbone.Model { - paper:joint.dia.Paper; - graph:joint.dia.Graph; - model:Backbone.Collection; + paper: joint.dia.Paper; + graph: joint.dia.Graph; + model: Backbone.Collection; - constructor(opt:{ - paper : joint.dia.Paper; - graph : joint.dia.Graph; - model : Backbone.Collection + constructor(opt: { + paper: joint.dia.Paper; + graph: joint.dia.Graph; + model: Backbone.Collection }); - createSelectionBox(cellView:joint.dia.CellView) : void; - destroySelectionBox(cellView:joint.dia.CellView) : void; - startSelecting(evt:any) : void; - cancelSelection() : void; + createSelectionBox(cellView: joint.dia.CellView): void; + destroySelectionBox(cellView: joint.dia.CellView): void; + startSelecting(evt: any): void; + cancelSelection(): void; - addHandle(handle:Handle) : void; - removeHandle(name:string) : void; - changeHandle(name:string, handle:Handle) : void; + addHandle(handle: Handle): void; + removeHandle(name: string): void; + changeHandle(name: string, handle: Handle): void; } } } diff --git a/raygun4js/raygun4js-tests.ts b/raygun4js/raygun4js-tests.ts index 56577765ce..f3c3c9c1ed 100644 --- a/raygun4js/raygun4js-tests.ts +++ b/raygun4js/raygun4js-tests.ts @@ -1,6 +1,4 @@ -/// - -var client: raygun.RaygunStatic = Raygun.noConflict(); +var client: raygun.RaygunStatic = Raygun.noConflict(); var newClient: raygun.RaygunStatic = client.constructNewRaygun(); diff --git a/react-bootstrap/react-bootstrap-tests.tsx b/react-bootstrap/react-bootstrap-tests.tsx index 0d9b8d4fd5..e10d6754a2 100644 --- a/react-bootstrap/react-bootstrap-tests.tsx +++ b/react-bootstrap/react-bootstrap-tests.tsx @@ -1,6 +1,5 @@ // React-Bootstrap Test // ================================================================================ -/// /// // Imports diff --git a/react-day-picker/react-day-picker-tests.tsx b/react-day-picker/react-day-picker-tests.tsx index b45a03108b..6709dd00eb 100644 --- a/react-day-picker/react-day-picker-tests.tsx +++ b/react-day-picker/react-day-picker-tests.tsx @@ -1,5 +1,4 @@ - -/// +/// import * as DayPicker2 from "react-day-picker"; diff --git a/react-dnd/react-dnd-tests.ts b/react-dnd/react-dnd-tests.ts index 59c0566664..d8ab201126 100644 --- a/react-dnd/react-dnd-tests.ts +++ b/react-dnd/react-dnd-tests.ts @@ -1,4 +1,3 @@ -/// "use strict"; // Test adapted from the ReactDnD chess game tutorial: diff --git a/react-swipeable-views/react-swipeable-views-tests.ts b/react-swipeable-views/react-swipeable-views-tests.ts index ada49577af..c608f065f4 100644 --- a/react-swipeable-views/react-swipeable-views-tests.ts +++ b/react-swipeable-views/react-swipeable-views-tests.ts @@ -1,5 +1,3 @@ -/// - import * as React from 'react'; import SwipeableViews from 'react-swipeable-views'; diff --git a/react/react-tests.ts b/react/react-tests.ts index b6a1c4d9ca..c4615d0f4d 100644 --- a/react/react-tests.ts +++ b/react/react-tests.ts @@ -1,15 +1,3 @@ - - - - - - - - - - - - import React = require("react"); import ReactDOM = require("react-dom"); import ReactDOMServer = require("react-dom/server"); diff --git a/recaptcha/recaptcha-tests.ts b/recaptcha/recaptcha-tests.ts index 61ef51d9f1..e270966bda 100644 --- a/recaptcha/recaptcha-tests.ts +++ b/recaptcha/recaptcha-tests.ts @@ -1,6 +1,4 @@ -/// - -var recaptchaOptions: RecaptchaOptions = { +var recaptchaOptions: RecaptchaOptions = { theme : 'custom', custom_theme_widget: 'recaptcha_widget' }; diff --git a/redux-devtools-log-monitor/index.d.ts b/redux-devtools-log-monitor/index.d.ts index e7417cc442..d443bc880c 100644 --- a/redux-devtools-log-monitor/index.d.ts +++ b/redux-devtools-log-monitor/index.d.ts @@ -5,7 +5,6 @@ /// - import * as React from 'react' interface ILogMonitorProps { diff --git a/redux-devtools/redux-devtools-2.1.4-tests.tsx b/redux-devtools/redux-devtools-2.1.4-tests.tsx index 7ba73ce374..4382da2ce6 100644 --- a/redux-devtools/redux-devtools-2.1.4-tests.tsx +++ b/redux-devtools/redux-devtools-2.1.4-tests.tsx @@ -1,10 +1,9 @@ - /// /// import { compose, createStore, applyMiddleware, Middleware, Reducer } from 'redux'; import { createDevTools as devTools, persistState } from 'redux-devtools'; -import { LogMonitor } from 'redux-devtools-log-monitor'; +import LogMonitor from 'redux-devtools-log-monitor'; import * as React from 'react'; import { Component } from 'react'; diff --git a/redux-router/redux-router-tests.ts b/redux-router/redux-router-tests.ts index 24274f4cdf..212c4534dd 100644 --- a/redux-router/redux-router-tests.ts +++ b/redux-router/redux-router-tests.ts @@ -1,4 +1,3 @@ -/// import { reduxReactRouter, routerStateReducer, ReduxRouter, pushState } from 'redux-router'; export function someAsyncReduxAction(someArg: Object) { diff --git a/riotjs/index.d.ts b/riotjs/index.d.ts index cf802662cd..e86634ad11 100644 --- a/riotjs/index.d.ts +++ b/riotjs/index.d.ts @@ -4,6 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +/// interface JQueryStatic { riot: string; diff --git a/riotjs/riotjs-tests.ts b/riotjs/riotjs-tests.ts index 3b086c5dbd..ea8a1d11ae 100644 --- a/riotjs/riotjs-tests.ts +++ b/riotjs/riotjs-tests.ts @@ -1,6 +1,3 @@ - - - function describe(msg:any, fn:Function) { if (console.group) { console.group(msg); diff --git a/rosie/rosie-tests.ts b/rosie/rosie-tests.ts index 740f1e40c5..60c22a1bc6 100644 --- a/rosie/rosie-tests.ts +++ b/rosie/rosie-tests.ts @@ -1,5 +1,3 @@ -/// - let resultObj: Object; let resultFactory: rosie.IFactory; diff --git a/rtree/rtree-tests.ts b/rtree/rtree-tests.ts index 67d35a4e61..440e1d4473 100644 --- a/rtree/rtree-tests.ts +++ b/rtree/rtree-tests.ts @@ -1,5 +1,3 @@ -/// - var myRTree = RTree(5); var el = "test"; diff --git a/rx-angular/index.d.ts b/rx-angular/index.d.ts index c2cb03037d..2faecd5e06 100644 --- a/rx-angular/index.d.ts +++ b/rx-angular/index.d.ts @@ -5,7 +5,6 @@ /// /// -/// declare namespace Rx { diff --git a/rx-angular/rx.angular-tests.ts b/rx-angular/rx.angular-tests.ts index a454876db2..f2413695af 100644 --- a/rx-angular/rx.angular-tests.ts +++ b/rx-angular/rx.angular-tests.ts @@ -3,8 +3,6 @@ // Definitions by: Mick Delaney // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - var app = angular.module('testModule'); interface AppScope extends rx.angular.IRxScope { @@ -13,7 +11,6 @@ interface AppScope extends rx.angular.IRxScope { app.controller('Ctrl', ($scope: AppScope) => { this.inputObservable = $scope.$toObservable('term') - .throttle(400) .safeApply($scope, (results: any) => { this.results = results; }); diff --git a/rx-dom/index.d.ts b/rx-dom/index.d.ts index 2a98685e2f..7afc8b5dd0 100644 --- a/rx-dom/index.d.ts +++ b/rx-dom/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: oliver Weichhold // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// declare module Rx.DOM { export interface AjaxSettings { diff --git a/rx-dom/rx-dom-tests.ts b/rx-dom/rx-dom-tests.ts index 55d1da8f1a..fb834ee9c6 100644 --- a/rx-dom/rx-dom-tests.ts +++ b/rx-dom/rx-dom-tests.ts @@ -1,5 +1,4 @@ -/// - +/// import * as Rx from 'rx'; import * as DOM from 'rx.DOM'; \ No newline at end of file diff --git a/scroller/scroller-tests.ts b/scroller/scroller-tests.ts index 6a5a29be92..a4ac515b6c 100644 --- a/scroller/scroller-tests.ts +++ b/scroller/scroller-tests.ts @@ -1,5 +1,3 @@ -/// - var clientWidth: any; var clientHeight: any; var render: any; diff --git a/scrypt-async/scrypt-async-tests.ts b/scrypt-async/scrypt-async-tests.ts index 745d3ae62b..f1ae758524 100644 --- a/scrypt-async/scrypt-async-tests.ts +++ b/scrypt-async/scrypt-async-tests.ts @@ -1,7 +1,5 @@ // Tests by: Kaur Kuut -/// - var callback = function(key: string | number[]) { }; scrypt("abc", "def", 10, 8, 32, 1000, callback, "base64"); diff --git a/sendgrid/sendgrid-tests.ts b/sendgrid/sendgrid-tests.ts index 7478d88f44..c764442702 100644 --- a/sendgrid/sendgrid-tests.ts +++ b/sendgrid/sendgrid-tests.ts @@ -4,8 +4,7 @@ * Created by using code samples from https://github.com/sendgrid/sendgrid-nodejs#usage */ -/// -/// +/// import sg = require("sendgrid"); var sendgrid = sg("api_user", "api_key"); diff --git a/sequelize/sequelize-tests.ts b/sequelize/sequelize-tests.ts index e67a8c4b7d..a17e7d90e3 100644 --- a/sequelize/sequelize-tests.ts +++ b/sequelize/sequelize-tests.ts @@ -1,4 +1,4 @@ -import Sequelize = require("./"); +import Sequelize = require("sequelize"); // // Fixtures @@ -880,8 +880,6 @@ User.findAll( { order : [['id', ';DELETE YOLO INJECTIONS']] } ); User.findAll( { include : [User], order : [[User, 'id', ';DELETE YOLO INJECTIONS']] } ); User.findAll( { include : [User], order : [['id', 'ASC NULLS LAST'], [User, 'id', 'DESC NULLS FIRST']] } ); User.findAll( { include : [{ model : User, where : { title : 'DoDat' }, include : [{ model : User }] }] } ); -User.findAll( { attributes: ['username', 'data']}); -User.findAll( { attributes: {include: ['username', 'data']} }); User.findById( 'a string' ); diff --git a/sharedworker/SharedWorker-tests.ts b/sharedworker/SharedWorker-tests.ts index 853daa6b2f..0674166f8d 100644 --- a/sharedworker/SharedWorker-tests.ts +++ b/sharedworker/SharedWorker-tests.ts @@ -1,5 +1,3 @@ -/// - var worker_with_name = new SharedWorker('worker.js', "worker"); var worker = new SharedWorker('worker.js'); diff --git a/sharepoint/SharePoint-tests.ts b/sharepoint/SharePoint-tests.ts index 27ac4733fe..bef4ac4b39 100644 --- a/sharepoint/SharePoint-tests.ts +++ b/sharepoint/SharePoint-tests.ts @@ -1,5 +1,4 @@ -/// -/// +/// /// /// diff --git a/sharepoint/index.d.ts b/sharepoint/index.d.ts index dea0d4c206..69f400c400 100644 --- a/sharepoint/index.d.ts +++ b/sharepoint/index.d.ts @@ -3,7 +3,8 @@ // Definitions by: Stanislav Vyshchepan , Andrey Markeev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// + declare var _spBodyOnLoadFunctions: Function[]; declare var _spBodyOnLoadFunctionNames: string[]; declare var _spBodyOnLoadCalled: boolean; diff --git a/sigmajs/sigmajs-tests.ts b/sigmajs/sigmajs-tests.ts index 6edd4e68e7..a29ae0773c 100644 --- a/sigmajs/sigmajs-tests.ts +++ b/sigmajs/sigmajs-tests.ts @@ -1,4 +1,3 @@ -/// namespace SigmaJsTests { var container = document.createElement("sigma"); var s = new sigma({ diff --git a/signals/js-signals-tests.ts b/signals/js-signals-tests.ts index 0be29da5bd..5b1215280e 100644 --- a/signals/js-signals-tests.ts +++ b/signals/js-signals-tests.ts @@ -1,5 +1,3 @@ -/// - // lifted from https://github.com/millermedeiros/js-signals/wiki/Examples interface TestObject { started: Signal; diff --git a/signature_pad/signature_pad-tests.ts b/signature_pad/signature_pad-tests.ts index 57c42e7d41..d4968b5c2a 100644 --- a/signature_pad/signature_pad-tests.ts +++ b/signature_pad/signature_pad-tests.ts @@ -1,5 +1,3 @@ -/// - /* TEST 1 - Basic structure and usage */ function BasicTest() { var canvas = document.querySelector("canvas"); diff --git a/simple-mock/simple-mock-tests.ts b/simple-mock/simple-mock-tests.ts index b6d212e98d..4da625f063 100644 --- a/simple-mock/simple-mock-tests.ts +++ b/simple-mock/simple-mock-tests.ts @@ -2,9 +2,7 @@ /// /// -/// - -'use strict' +'use strict'; import simple = require('simple-mock'); import assert = require('assert'); diff --git a/simplebar/simplebar-tests.ts b/simplebar/simplebar-tests.ts index 77828223f4..9ce78c1fdf 100644 --- a/simplebar/simplebar-tests.ts +++ b/simplebar/simplebar-tests.ts @@ -1,4 +1,3 @@ -/// /// var simplebar = $.fn.simplebar.noConflict(); diff --git a/simplestorage.js/simplestorage.js-tests.ts b/simplestorage.js/simplestorage.js-tests.ts index 1e9f4202a3..237910c035 100644 --- a/simplestorage.js/simplestorage.js-tests.ts +++ b/simplestorage.js/simplestorage.js-tests.ts @@ -1,5 +1,3 @@ -/// - var versionTest: string = simpleStorage.version; var canUseTest: boolean = simpleStorage.canUse(); var simpleStorageTest1: boolean|Error = simpleStorage.set("string", 7); diff --git a/sinon-chrome/sinon-chrome-tests.ts b/sinon-chrome/sinon-chrome-tests.ts index 1b714fb4ee..70c6cfb1d3 100644 --- a/sinon-chrome/sinon-chrome-tests.ts +++ b/sinon-chrome/sinon-chrome-tests.ts @@ -1,5 +1,3 @@ -/// - var chromeStub = window.chrome; // Examples taken from https://github.com/vitalets/sinon-chrome: diff --git a/sinon-stub-promise/sinon-stub-promise-tests.ts b/sinon-stub-promise/sinon-stub-promise-tests.ts index 56c20a18a9..3a03787235 100644 --- a/sinon-stub-promise/sinon-stub-promise-tests.ts +++ b/sinon-stub-promise/sinon-stub-promise-tests.ts @@ -1,4 +1,3 @@ -/// function testResolve() { var promise = sinon.stub().returnsPromise(); promise.resolves('test val'); diff --git a/skyway/index.d.ts b/skyway/index.d.ts index 95579e8d0e..b9a06a8f15 100644 --- a/skyway/index.d.ts +++ b/skyway/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Toshiya Nakakura // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace PeerJs{ interface PeerJSOption{ diff --git a/skyway/skyway-tests.ts b/skyway/skyway-tests.ts index 49fea5367a..2731192f75 100644 --- a/skyway/skyway-tests.ts +++ b/skyway/skyway-tests.ts @@ -1,6 +1,3 @@ - -/// - var peerByOption: PeerJs.Peer = new Peer({ key: 'peerKey', debug: 3, diff --git a/smtpapi/smtpapi-tests.ts b/smtpapi/smtpapi-tests.ts index f5e437386f..6dc172e843 100644 --- a/smtpapi/smtpapi-tests.ts +++ b/smtpapi/smtpapi-tests.ts @@ -2,8 +2,6 @@ * Created from usage code samples from //github.com/sendgrid/smtpapi-nodejs#usage */ -/// - import smtpapi = require("smtpapi"); var header = new smtpapi(); diff --git a/snapsvg/snapsvg-tests.ts b/snapsvg/snapsvg-tests.ts index b07bc20079..3f8094690f 100644 --- a/snapsvg/snapsvg-tests.ts +++ b/snapsvg/snapsvg-tests.ts @@ -1,6 +1,5 @@ -//Copied from the snap homepage http://snapsvg.io/ +// Copied from the snap homepage http://snapsvg.io/ -/// // First lets create our drawing surface out of existing SVG element // If you want to create new surface just provide dimensions // like s = Snap(800, 600); diff --git a/socket.io-client/socket.io-client-tests.ts b/socket.io-client/socket.io-client-tests.ts index f2563fc462..d72629358d 100644 --- a/socket.io-client/socket.io-client-tests.ts +++ b/socket.io-client/socket.io-client-tests.ts @@ -1,5 +1,3 @@ -/// - function testUsingWithNodeHTTPServer() { var socket = io('http://localhost'); socket.on('news', function (data: any) { diff --git a/socket.io-redis/socket.io-redis-tests.ts b/socket.io-redis/socket.io-redis-tests.ts index bab90b5d7e..28b0f9873f 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'); import ioRedis = require('socket.io-redis'); diff --git a/socket.io/socket.io-tests.ts b/socket.io/socket.io-tests.ts index 0f3b26963e..442e677751 100644 --- a/socket.io/socket.io-tests.ts +++ b/socket.io/socket.io-tests.ts @@ -1,5 +1,3 @@ -/// - import socketIO = require('socket.io'); function testUsingWithNodeHTTPServer() { diff --git a/soundjs/soundjs-tests.ts b/soundjs/soundjs-tests.ts index 1d97d18d7b..384e9cd88e 100644 --- a/soundjs/soundjs-tests.ts +++ b/soundjs/soundjs-tests.ts @@ -1,6 +1,3 @@ -/// - - // Sample from : http://www.createjs.com/Docs/SoundJS/modules/SoundJS.html // Feature set example: createjs.Sound.addEventListener("fileload", createjs.proxy(this.loadHandler, this)); diff --git a/stamplay-js-sdk/index.d.ts b/stamplay-js-sdk/index.d.ts index 70bce1af15..53f57ad86c 100644 --- a/stamplay-js-sdk/index.d.ts +++ b/stamplay-js-sdk/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Riderman de Sousa Barbosa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace Stamplay { diff --git a/storejs/storejs-tests.ts b/storejs/storejs-tests.ts index 06387a728d..725a81c6b4 100644 --- a/storejs/storejs-tests.ts +++ b/storejs/storejs-tests.ts @@ -1,5 +1,4 @@ // Tests for storagejs.d.ts -/// // Store 'marcus' at 'username' store.set('username', 'marcus'); diff --git a/stripe-checkout/stripe-checkout-tests.ts b/stripe-checkout/stripe-checkout-tests.ts index bcb493c7c0..26a8d3a30c 100644 --- a/stripe-checkout/stripe-checkout-tests.ts +++ b/stripe-checkout/stripe-checkout-tests.ts @@ -1,5 +1,3 @@ - - // Test the minimum amount of configuration required. var handler = StripeCheckout.configure({ key: "my-secret-key", diff --git a/stripe/index.d.ts b/stripe/index.d.ts index 659c75bf3e..7bee5830b6 100644 --- a/stripe/index.d.ts +++ b/stripe/index.d.ts @@ -3,6 +3,8 @@ // Definitions by: Andy Hawkins , Eric J. Smith , Amrit Kahlon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + interface StripeStatic { setPublishableKey(key: string): void; validateCardNumber(cardNumber: string): boolean; diff --git a/stripe/stripe-node-tests.ts b/stripe/stripe-node-tests.ts index 64b0fb92c6..21e41a2583 100644 --- a/stripe/stripe-node-tests.ts +++ b/stripe/stripe-node-tests.ts @@ -1,8 +1,5 @@ - - import StripeNode = require('stripe'); - var stripeTor = new StripeNode("sk_test_BF573NobVn98OiIsPAv7A04K"); var stripe = StripeNode("sk_test_BF573NobVn98OiIsPAv7A04K") diff --git a/strophe/strophe-tests.ts b/strophe/strophe-tests.ts index 78ffb3941e..4e2d42cc9d 100644 --- a/strophe/strophe-tests.ts +++ b/strophe/strophe-tests.ts @@ -1,6 +1,4 @@ -/// - -function log(msg: string): void { +function log(msg: string): void { console.log(msg); } diff --git a/svg.js/svgjs-tests.ts b/svg.js/svgjs-tests.ts index c4167e8d2b..0a87f3d3ae 100644 --- a/svg.js/svgjs-tests.ts +++ b/svg.js/svgjs-tests.ts @@ -1,9 +1,7 @@ /// -/// // create svg drawing paper - // Example from svgjs.com function one() { var draw = SVG('canvas') diff --git a/switchery/switchery-tests.ts b/switchery/switchery-tests.ts index 35bd77920f..b1894ef2db 100644 --- a/switchery/switchery-tests.ts +++ b/switchery/switchery-tests.ts @@ -1,5 +1,3 @@ -/// - // // Examples from https://github.com/abpetkov/switchery // diff --git a/tcomb/tcomb-tests.ts b/tcomb/tcomb-tests.ts index 2193ad61b2..2bf76261f3 100644 --- a/tcomb/tcomb-tests.ts +++ b/tcomb/tcomb-tests.ts @@ -1,6 +1,6 @@ // ReSharper disable InconsistentNaming // ReSharper disable WrongExpressionStatement -/// + /// /// diff --git a/tether-shepherd/tether-shepherd-tests.ts b/tether-shepherd/tether-shepherd-tests.ts index 085da575b9..a0265f8a34 100644 --- a/tether-shepherd/tether-shepherd-tests.ts +++ b/tether-shepherd/tether-shepherd-tests.ts @@ -1,5 +1,3 @@ -/// - var tour = new Shepherd.Tour({ defaults: { classes: 'shepherd-theme-default' diff --git a/tether/tether-tests.ts b/tether/tether-tests.ts index 470c2827ee..e00990055f 100644 --- a/tether/tether-tests.ts +++ b/tether/tether-tests.ts @@ -1,5 +1,4 @@ /// -/// var yellowBox = document.querySelector(".yellow"); var greenBox = document.querySelector(".green"); diff --git a/timelinejs/timelinejs-tests.ts b/timelinejs/timelinejs-tests.ts index da6aef9669..62255b3590 100644 --- a/timelinejs/timelinejs-tests.ts +++ b/timelinejs/timelinejs-tests.ts @@ -1,7 +1,6 @@ /** * Created by Roland on 6/15/2014. */ -/// var timelineSource:knightlab.ITimelineModel = { timeline: { diff --git a/touch-events/touch-event-tests.ts b/touch-events/touch-event-tests.ts index 47dda3bb67..7ff9fda362 100644 --- a/touch-events/touch-event-tests.ts +++ b/touch-events/touch-event-tests.ts @@ -1,20 +1,18 @@ -/// - -var touchEvent:TouchEvent; -var list:TouchList; -var touch:Touch; +var touchEvent: TouchEvent; +var list: TouchList; +var touch: Touch; list = touchEvent.touches; list = touchEvent.targetTouches; list = touchEvent.changedTouches; -var flag:boolean; +var flag: boolean; flag = touchEvent.altKey; flag = touchEvent.metaKey; flag = touchEvent.ctrlKey; flag = touchEvent.shiftKey; -var len:number = list.length; +var len: number = list.length; touch = list.item(0); touch == list[0]; @@ -30,5 +28,5 @@ y = touch.clientY; x = touch.pageX; y = touch.pageY; -var target:EventTarget; +var target: EventTarget; target = touch.target; diff --git a/turf/turf-tests.ts b/turf/turf-tests.ts index d0fc95ba18..1737de1870 100644 --- a/turf/turf-tests.ts +++ b/turf/turf-tests.ts @@ -1,5 +1,3 @@ -/// - /////////////////////////////////////////// // Tests data initialisation /////////////////////////////////////////// diff --git a/tv4/tv4-tests.ts b/tv4/tv4-tests.ts index 84a4ee328f..4d3d46aecc 100644 --- a/tv4/tv4-tests.ts +++ b/tv4/tv4-tests.ts @@ -1,5 +1,3 @@ -/// - var str:string; var strArr:string[]; var bool:boolean; diff --git a/tweenjs/tweenjs-tests.ts b/tweenjs/tweenjs-tests.ts index 65eba7b3f3..c326d8f8f1 100644 --- a/tweenjs/tweenjs-tests.ts +++ b/tweenjs/tweenjs-tests.ts @@ -1,5 +1,4 @@ -/// -/// +/// var target = new createjs.DisplayObject(); diff --git a/type-check/type-check-tests.ts b/type-check/type-check-tests.ts index b1d629309d..5d29aab763 100644 --- a/type-check/type-check-tests.ts +++ b/type-check/type-check-tests.ts @@ -1,5 +1,5 @@ // run this in node -/// + import tchecker = require("type-check"); var typeCheck = (i1:string,i2:any,i3?: TypeCheck.Options ) => { diff --git a/typeahead/typeahead-tests.ts b/typeahead/typeahead-tests.ts index ec2e3e1a82..1441a19397 100644 --- a/typeahead/typeahead-tests.ts +++ b/typeahead/typeahead-tests.ts @@ -1,5 +1,4 @@ /// -/// function test_typeahead() { var options: Twitter.Typeahead.Options = {}; diff --git a/typescript-services/typescriptServices-tests.ts b/typescript-services/typescriptServices-tests.ts index 57066d2b47..f79eee7243 100644 --- a/typescript-services/typescriptServices-tests.ts +++ b/typescript-services/typescriptServices-tests.ts @@ -1,5 +1,3 @@ -/// - // transpile function transpile(input: string): string { return ts.transpile(input, { module: ts.ModuleKind.CommonJS }); diff --git a/ua-parser-js/ua-parser-js-tests.ts b/ua-parser-js/ua-parser-js-tests.ts index 7ff2c5db56..709ee380ff 100644 --- a/ua-parser-js/ua-parser-js-tests.ts +++ b/ua-parser-js/ua-parser-js-tests.ts @@ -1,5 +1,3 @@ -/// - import {UAParser} from 'ua-parser-js'; function test_parser() { diff --git a/ui-router-extras/ui-router-extras-tests.ts b/ui-router-extras/ui-router-extras-tests.ts index 045a3049c7..290ef37dad 100644 --- a/ui-router-extras/ui-router-extras-tests.ts +++ b/ui-router-extras/ui-router-extras-tests.ts @@ -1,5 +1,3 @@ -/// - var myApp = angular.module('testModule') myApp.config(($stateProvider: angular.ui.IStateProvider, $stickyStateProvider: angular.ui.IStickyStateProvider) => { diff --git a/umbraco/index.d.ts b/umbraco/index.d.ts index 7a0e229ae0..b606a4ec06 100644 --- a/umbraco/index.d.ts +++ b/umbraco/index.d.ts @@ -3,18 +3,8 @@ // Definitions by: DeCareSystemsIreland // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// +/// - - -// Collapse umbraco into umb -import umb = umbraco; - -// Support AMD require -declare module 'umbraco' { - export = umbraco; -} - -declare namespace umbraco { - -} - +export as namespace umb; +export = umbraco; diff --git a/umbraco/umbraco-tests.ts b/umbraco/umbraco-tests.ts index 6fdfdbf240..4564dadfde 100644 --- a/umbraco/umbraco-tests.ts +++ b/umbraco/umbraco-tests.ts @@ -1,4 +1,3 @@ - /// var navigationService: umb.services.INavigationService; diff --git a/underscore-ko/index.d.ts b/underscore-ko/index.d.ts index 618033e607..8bc3eb2837 100644 --- a/underscore-ko/index.d.ts +++ b/underscore-ko/index.d.ts @@ -4,7 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// + +import * as _ from 'underscore'; interface KnockoutObservableArrayFunctions { @@ -50,8 +51,8 @@ interface KnockoutObservableArrayFunctions { contains(value: T): boolean; include(value: T): boolean; - invoke(methodName: string, ...arguments: any[]): any; - invoke_(methodName: string, ...arguments: any[]): any; + invoke(methodName: string, ...args: any[]): any; + invoke_(methodName: string, ...args: any[]): any; pluck(propertyName: string): T[]; max(iterator: _.ListIterator, context?: any): any; diff --git a/underscore.string/underscore.string-tests.ts b/underscore.string/underscore.string-tests.ts index 996c1c151b..8eed630854 100644 --- a/underscore.string/underscore.string-tests.ts +++ b/underscore.string/underscore.string-tests.ts @@ -1,5 +1,3 @@ -/// - import * as _ from 'underscore'; _.mixin(_.string.exports()); diff --git a/validator/validator-tests.ts b/validator/validator-tests.ts index 8afabc2099..191502de11 100644 --- a/validator/validator-tests.ts +++ b/validator/validator-tests.ts @@ -1,5 +1,3 @@ -/// - import * as validator from 'validator'; let any: any; diff --git a/vex-js/vex-tests.ts b/vex-js/vex-tests.ts index 41dd9146ba..b3a76a8650 100644 --- a/vex-js/vex-tests.ts +++ b/vex-js/vex-tests.ts @@ -1,5 +1,4 @@ /// -/// var vexContent = vex.open({ afterClose: (() => null), diff --git a/victor/index.d.ts b/victor/index.d.ts index e3a3bf1752..3eee2bd37b 100644 --- a/victor/index.d.ts +++ b/victor/index.d.ts @@ -3,7 +3,6 @@ // Definitions by: Ivane Gegia // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - interface VictorCoordinates { x:number diff --git a/victor/victor-tests.ts b/victor/victor-tests.ts index 76eb79c220..67deff3e72 100644 --- a/victor/victor-tests.ts +++ b/victor/victor-tests.ts @@ -1,5 +1,3 @@ -/// - var vector1 = new Victor(10,10) var vector2 = new Victor(20,20) diff --git a/viewporter/viewporter-tests.ts b/viewporter/viewporter-tests.ts index 9cdb5d497d..9c720bec65 100644 --- a/viewporter/viewporter-tests.ts +++ b/viewporter/viewporter-tests.ts @@ -1,6 +1,5 @@ /// -/// -/// +/// function test_map() { viewporter.preventPageScroll = true; diff --git a/voximplant-websdk/voximplant-websdk-tests.ts b/voximplant-websdk/voximplant-websdk-tests.ts index ace457cd26..ea06007a8b 100644 --- a/voximplant-websdk/voximplant-websdk-tests.ts +++ b/voximplant-websdk/voximplant-websdk-tests.ts @@ -1,5 +1,3 @@ -/// - var vox: VoxImplant.Client = VoxImplant.getInstance(), call: VoxImplant.Call, room: string; diff --git a/webaudioapi/index.d.ts b/webaudioapi/index.d.ts index 769b12a2aa..21ecc842a0 100644 --- a/webaudioapi/index.d.ts +++ b/webaudioapi/index.d.ts @@ -7,8 +7,6 @@ // DEPRECATED: use TypeScript 1.5.3 -/// - declare var webkitAudioContext: { new (): AudioContext; } diff --git a/webix/webix-tests.ts b/webix/webix-tests.ts index 128bc666c7..de9b965818 100644 --- a/webix/webix-tests.ts +++ b/webix/webix-tests.ts @@ -1,5 +1,3 @@ -/// - //ajax operations webix.ready(function(){ webix.ajax().get("te").then(function(){ diff --git a/webrtc/index.d.ts b/webrtc/index.d.ts new file mode 100644 index 0000000000..f950da1943 --- /dev/null +++ b/webrtc/index.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/knockout/tests/tsconfig.json b/webrtc/tsconfig.json similarity index 57% rename from knockout/tests/tsconfig.json rename to webrtc/tsconfig.json index 988d4f75c9..1b89eee01f 100644 --- a/knockout/tests/tsconfig.json +++ b/webrtc/tsconfig.json @@ -2,14 +2,16 @@ "compilerOptions": { "module": "commonjs", "target": "es6", - "noImplicitAny": false, + "noImplicitAny": true, "strictNullChecks": false, - "baseUrl": "../../", - "typesRoot": "../../", + "baseUrl": "../", + "typesSearchPaths": [ + "../" + ], "noEmit": true }, "files": [ "index.d.ts", - "knockout-templatingBehaviors-tests.ts" + "webrtc-tests.ts" ] } \ No newline at end of file diff --git a/webrtc/webrtc-tests.ts b/webrtc/webrtc-tests.ts new file mode 100644 index 0000000000..1ecc9545f4 --- /dev/null +++ b/webrtc/webrtc-tests.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/x-editable/index.d.ts b/x-editable/index.d.ts index 786bb9599b..fde4d8b85a 100644 --- a/x-editable/index.d.ts +++ b/x-editable/index.d.ts @@ -3,11 +3,9 @@ // Definitions by: Chris Kirby // Definitions: https://github.com/sirkirby/DefinitelyTyped - /// -interface XEditableOptions -{ +interface XEditableOptions { ajaxOptions?: any; anim?: string; autotext?: string; @@ -35,33 +33,31 @@ interface XEditableOptions url?: any; validate?: any; value?: any; - - } interface XEditableSubmitOptions { url?: any; data?: any; ajaxOptions?: any; - error(obj: any) : void; - success(obj: any, config: any) : void; + error(obj: any): void; + success(obj: any, config: any): void; } interface XEditable { options: XEditableOptions; - activate() : void; - destroy() : void; - disable() : void; - enable() : void; - getValue(isSingle: boolean) : any; - hide() : void; - option(key: any, value: any) : void; - setValue(value: any, convertStr: boolean) : void; - show(closeAll: boolean) : void; - submit(options: XEditableSubmitOptions) : void; - toggle(closeAll: boolean) : void; - toggleDisabled() : void; - validate() : void; + activate(): void; + destroy(): void; + disable(): void; + enable(): void; + getValue(isSingle: boolean): any; + hide(): void; + option(key: any, value: any): void; + setValue(value: any, convertStr: boolean): void; + show(closeAll: boolean): void; + submit(options: XEditableSubmitOptions): void; + toggle(closeAll: boolean): void; + toggleDisabled(): void; + validate(): void; } interface JQuery { diff --git a/yamljs/index.d.ts b/yamljs/index.d.ts index c98e950ae6..3a3e645d45 100644 --- a/yamljs/index.d.ts +++ b/yamljs/index.d.ts @@ -3,6 +3,9 @@ // Definitions by: Tim Jonischkat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export as namespace YAML; +export = YAML; + declare namespace YAML { function load(path: string): any; @@ -10,7 +13,3 @@ declare namespace YAML { function parse(yamlString: string): any; } - -declare module "yamljs" { - export = YAML; -} diff --git a/yamljs/yamljs-tests.ts b/yamljs/yamljs-tests.ts index 939a37d0cd..e0662f8045 100644 --- a/yamljs/yamljs-tests.ts +++ b/yamljs/yamljs-tests.ts @@ -1,5 +1,3 @@ - - import yamljs = require('yamljs'); yamljs.load('yaml-testfile.yml'); diff --git a/yui/index.d.ts b/yui/index.d.ts index 1fbc60fb58..419bec83db 100644 --- a/yui/index.d.ts +++ b/yui/index.d.ts @@ -3,9 +3,9 @@ // Definitions by: Gia Bảo @ Sân Đình // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// - -interface YUI{ +interface YUI { Test: YUITest.YUITestStatic Assert: YUITest.IAssert diff --git a/yui/yui-test.d.ts b/yui/yui-test.d.ts index 1d3f2af60a..85bdb3c7f1 100644 --- a/yui/yui-test.d.ts +++ b/yui/yui-test.d.ts @@ -4,13 +4,13 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace YUITest { - interface YUITestStatic{ + interface YUITestStatic { Assert: IAssert Case: TestCase Runner: TestRunner } - interface EventTarget{ + interface EventTarget { attach(type: string, listener: Function): void subscribe(type: string, listener: Function): void fire(event: Object): void @@ -19,7 +19,7 @@ declare namespace YUITest { unsubscribe(type: string, listener: Function): void } - interface TestRunner extends EventTarget{ + interface TestRunner extends EventTarget { TEST_CASE_BEGIN_EVENT: string TEST_CASE_COMPLETE_EVENT: string TEST_SUITE_BEGIN_EVENT: string @@ -49,16 +49,16 @@ declare namespace YUITest { run(options?: boolean): void } - interface TestSuite{ + interface TestSuite { name: string -// items: any[] //Array of test suites and test cases. @private + // items: any[] //Array of test suites and test cases. @private add(testObject: TestSuite): void add(testObject: TestCase): void setUp(): void tearDown(): void } - interface TestCase{ + interface TestCase { new (template: Object): TestCase DEFAULT_WAIT: number callback(...args: any[]): Function @@ -73,7 +73,7 @@ declare namespace YUITest { tearDown(): void } - interface IAssert{ + interface IAssert { fail(message?: string): void pass(message?: string): void areEqual(expected: Object, actual: Object, message?: string): void