Skip to content

Commit

Permalink
Use index.d.ts only (not foo/foo.d.ts) (DefinitelyTyped#12834)
Browse files Browse the repository at this point in the history
* Use index.d.ts only (not foo/foo.d.ts)

* Convert more packages

* Remove unnecessary references
  • Loading branch information
Andy authored Nov 21, 2016
1 parent 6928f44 commit 8841dfc
Show file tree
Hide file tree
Showing 248 changed files with 119 additions and 157 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion 3d-bin-packing/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"3d-bin-packing.d.ts",
"index.d.ts",
"3d-bin-packing-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion angular-q-spread/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": [
"angular-q-spread.d.ts",
"index.d.ts",
"angular-q-spread-tests.ts"
],
"compilerOptions": {
Expand Down
2 changes: 0 additions & 2 deletions angular-websocket/angular-websocket-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="angular-websocket.d.ts" />

let dummySocket: ng.websocket.IWebSocket;
let dummyPromise: ng.IPromise<void>;
let dummyScope: ng.IScope;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion angular-websocket/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": [
"angular-websocket.d.ts",
"index.d.ts",
"angular-websocket-tests.ts"
],
"compilerOptions": {
Expand Down
6 changes: 2 additions & 4 deletions angular-xeditable/angular-xeditable-tests.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/// <reference path="angular-xeditable.d.ts" />

var myApp = angular.module('testModule', ['xeditable']);
var myApp = angular.module('testModule', ['xeditable']);

myApp.run(["editableOptions", (editableOptions: angular.xeditable.IEditableOptions) => {

editableOptions.activate = "select";
editableOptions.activationEvent = "click";
editableOptions.blurElem = "ignore";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion angular-xeditable/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": [
"angular-xeditable.d.ts",
"index.d.ts",
"angular-xeditable-tests.ts"
],
"compilerOptions": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion bootstrap-fileinput/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"bootstrap-fileinput.d.ts"
"index.d.ts"
]
}
2 changes: 0 additions & 2 deletions chai-dom/chai-dom-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="chai-dom.d.ts" />

import * as chai from 'chai';
import * as chaiDom from 'chai-dom';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion chai-dom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"chai-dom.d.ts",
"index.d.ts",
"chai-dom-tests.ts"
]
}
1 change: 0 additions & 1 deletion chai-enzyme/chai-enzyme-tests.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="react" />
/// <reference path="./chai-enzyme.d.ts" />
/// <reference types="enzyme" />
/// <reference types="chai" />

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion chai-enzyme/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"jsx": "react"
},
"files": [
"chai-enzyme.d.ts",
"index.d.ts",
"chai-enzyme-tests.tsx"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion commangular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"commangular.d.ts",
"index.d.ts",
"commangular-mock.d.ts"
]
}
1 change: 0 additions & 1 deletion connect-redis/connect-redis-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference path="./connect-redis.d.ts" />
/// <reference types="express-session" />

import * as connectRedis from "connect-redis";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion connect-redis/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"connect-redis.d.ts",
"index.d.ts",
"connect-redis-tests.ts"
]
}
4 changes: 1 addition & 3 deletions csv-parse/csv-parse-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="csv-parse.d.ts" />

import parse = require('csv-parse');

function callbackAPITest() {
Expand Down Expand Up @@ -38,7 +36,7 @@ import fs = require('fs');

function pipeFunctionTest() {
var transform = require('stream-transform');

var output:any = [];
var parser = parse({delimiter: ':'})
var input = fs.createReadStream('/etc/passwd');
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion csv-parse/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"csv-parse.d.ts",
"index.d.ts",
"csv-parse-tests.ts"
]
}
1 change: 0 additions & 1 deletion d3kit/d3kit-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference path="d3kit.d.ts" />
/// <reference types="d3" />
/// <reference types="mocha" />
/// <reference types="chai" />
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion d3kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"d3kit.d.ts",
"index.d.ts",
"d3kit-tests.ts"
]
}
1 change: 0 additions & 1 deletion daterangepicker/daterangepicker-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference path="daterangepicker.d.ts"/>
import moment = require("moment")

function tests_simple() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,5 @@ declare namespace daterangepicker {
}
}

declare module "daterangepicker" {
export = daterangepicker;
}
export = daterangepicker;
export as namespace daterangepicker;
2 changes: 1 addition & 1 deletion daterangepicker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"daterangepicker.d.ts",
"index.d.ts",
"daterangepicker-tests.ts"
]
}
2 changes: 0 additions & 2 deletions df-visible/df-visible-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="df-visible.d.ts" />

// https://github.com/customd/jquery-visible/blob/master/examples/demo-basic.html
$(function(){

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion df-visible/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"df-visible.d.ts",
"index.d.ts",
"df-visible-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion dva/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"jsx": "react"
},
"files": [
"dva.d.ts",
"index.d.ts",
"dva-tests.tsx"
]
}
1 change: 0 additions & 1 deletion epub/epub-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference path="epub.d.ts" />
import EPub = require("epub");

var epub = new EPub("./file.epub");
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion epub/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"epub.d.ts",
"index.d.ts",
"epub-tests.ts"
]
}
2 changes: 0 additions & 2 deletions exorcist/exorcist-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="exorcist.d.ts" />

import exorcist = require("exorcist");

module ExorcistTest {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion exorcist/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"exorcist.d.ts",
"index.d.ts",
"exorcist-tests.ts"
]
}
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/// <reference path="express-domain-middleware.d.ts" />
import fn = require('express-domain-middleware');
File renamed without changes.
2 changes: 1 addition & 1 deletion express-domain-middleware/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"express-domain-middleware.d.ts",
"index.d.ts",
"express-domain-middleware-tests.ts"
]
}
2 changes: 0 additions & 2 deletions fill-pdf/fill-pdf-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path='fill-pdf.d.ts' />

import * as fillPdf from 'fill-pdf';

var formData: fillPdf.FormData = { FieldName: 'Text to put into form field' };
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion fill-pdf/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"fill-pdf.d.ts",
"index.d.ts",
"fill-pdf-tests.ts"
]
}
2 changes: 0 additions & 2 deletions fluent-ffmpeg/fluent-ffmpeg-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="./fluent-ffmpeg.d.ts" />

import ffmpeg = require("fluent-ffmpeg")

let source: string, format: string, output: string
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion fluent-ffmpeg/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"fluent-ffmpeg.d.ts",
"index.d.ts",
"fluent-ffmpeg-tests.ts"
]
}
2 changes: 0 additions & 2 deletions fullpage.js/fullpage.js-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="fullpage.js.d.ts" />

function test_public_methods() {
$(() => {
$('#fullpage').fullpage({
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion fullpage.js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"fullpage.js.d.ts",
"index.d.ts",
"fullpage.js-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion gulp-angular-templatecache/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"gulp-angular-templatecache.d.ts",
"index.d.ts",
"gulp-angular-templatecache-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion gulp-help-doc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"gulp-help-doc.d.ts",
"index.d.ts",
"gulp-help-doc-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion gulp-insert/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"gulp-insert.d.ts",
"index.d.ts",
"gulp-insert-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion html-pdf/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"html-pdf.d.ts",
"index.d.ts",
"html-pdf-tests.ts"
]
}
2 changes: 0 additions & 2 deletions html-webpack-plugin/html-webpack-plugin-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
///<reference path="html-webpack-plugin.d.ts" />

import {Configuration} from "webpack";
import HtmlWebpackPlugin = require("html-webpack-plugin");

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion html-webpack-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"html-webpack-plugin.d.ts",
"index.d.ts",
"html-webpack-plugin-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion imagemapster/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"imagemapster.d.ts",
"index.d.ts",
"imagemapster-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion intl-tel-input/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"intl-tel-input.d.ts",
"index.d.ts",
"intl-tel-input-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion inversify-express-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"inversify-express-utils.d.ts",
"index.d.ts",
"inversify-express-utils-tests.ts"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion istanbul-middleware/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"istanbul-middleware.d.ts",
"index.d.ts",
"istanbul-middleware-tests.ts"
]
}
File renamed without changes.
Loading

0 comments on commit 8841dfc

Please sign in to comment.