diff --git a/bootstrap-table/bootstrap-table-tests.ts b/bootstrap-table/bootstrap-table-tests.ts
new file mode 100644
index 0000000000..6336ba4f8d
--- /dev/null
+++ b/bootstrap-table/bootstrap-table-tests.ts
@@ -0,0 +1 @@
+$().bootstrapTable({});
diff --git a/bootstrap-table/bootstrap-table.d.ts b/bootstrap-table/index.d.ts
similarity index 87%
rename from bootstrap-table/bootstrap-table.d.ts
rename to bootstrap-table/index.d.ts
index d0356dff84..5ed1b5e529 100644
--- a/bootstrap-table/bootstrap-table.d.ts
+++ b/bootstrap-table/index.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Talat Baig
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
+///
interface JQuery {
bootstrapTable(options?: any): JQuery;
diff --git a/bootstrap-table/tsconfig.json b/bootstrap-table/tsconfig.json
new file mode 100644
index 0000000000..ad183f608a
--- /dev/null
+++ b/bootstrap-table/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": true,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "bootstrap-table-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/bwip-js/bwip-js-tests.ts b/bwip-js/bwip-js-tests.ts
index 71601f111a..29cc419d2c 100644
--- a/bwip-js/bwip-js-tests.ts
+++ b/bwip-js/bwip-js-tests.ts
@@ -1,7 +1,3 @@
-///
-///
-'use strict';
-
import * as bwipjs from 'bwip-js';
import * as http from 'http';
import * as fs from 'fs';
@@ -13,7 +9,7 @@ bwipjs.loadFont('Inconsolata', 108,
http.createServer(function(req, res) {
// If the url does not begin /?bcid= then 404. Otherwise, we end up
// returning 400 on requests like favicon.ico.
- if (req.url.indexOf('/?bcid=') != 0) {
+ if (req.url!.indexOf('/?bcid=') != 0) {
res.writeHead(404, { 'Content-Type':'text/plain' });
res.end('BWIPJS: Unknown request format.', 'utf8');
} else {
diff --git a/bwip-js/index.d.ts b/bwip-js/index.d.ts
index 0f40b5771e..9c37fa6e44 100644
--- a/bwip-js/index.d.ts
+++ b/bwip-js/index.d.ts
@@ -3,84 +3,81 @@
// Definitions by: TANAKA Koichi
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
+///
-declare module 'bwip-js' {
- import {IncomingMessage as Request, ServerResponse as Response} from 'http';
+import {IncomingMessage as Request, ServerResponse as Response} from 'http';
- module BwipJs {
- export function loadFont(fontName:string, sizeMulti: number, fontFile: string): void;
- export function toBuffer(opts: ToBufferOptions, callback:(err: string|Error, png: Buffer) => void): void;
- interface ToBufferOptions {
- bcid: string;
- text: string;
+declare namespace BwipJs {
+ export function loadFont(fontName:string, sizeMulti: number, fontFile: string): void;
+ export function toBuffer(opts: ToBufferOptions, callback:(err: string|Error, png: Buffer) => void): void;
+ interface ToBufferOptions {
+ bcid: string;
+ text: string;
- parse?: boolean;
- parsefunc?: boolean;
+ parse?: boolean;
+ parsefunc?: boolean;
- height?: number;
- width?: number;
+ height?: number;
+ width?: number;
- scaleX?: number;
- scaleY?: number;
- scale?: number;
+ scaleX?: number;
+ scaleY?: number;
+ scale?: number;
- rotate?: 'N'|'R'|'L'|'I';
+ rotate?: 'N'|'R'|'L'|'I';
- paddingwidth?: number;
- paddingheight?: number;
+ paddingwidth?: number;
+ paddingheight?: number;
- monochrome?: boolean;
- alttext?: boolean;
+ monochrome?: boolean;
+ alttext?: boolean;
- includetext?: boolean;
- textfont?: string;
- textsize?: number;
- textgaps?: number;
+ includetext?: boolean;
+ textfont?: string;
+ textsize?: number;
+ textgaps?: number;
- textxalign?:'offleft'|'left'|'center'|'right'|'offright'|'justify';
- textyalign?:'below'|'center'|'above';
- textxoffset?: number;
- textyoffset?: number;
+ textxalign?:'offleft'|'left'|'center'|'right'|'offright'|'justify';
+ textyalign?:'below'|'center'|'above';
+ textxoffset?: number;
+ textyoffset?: number;
- showborder?: boolean;
- borderwidth?: number;
- borderleft?: number;
- borderright?: number;
- bordertop?: number;
- boraderbottom?: number;
+ showborder?: boolean;
+ borderwidth?: number;
+ borderleft?: number;
+ borderright?: number;
+ bordertop?: number;
+ boraderbottom?: number;
- barcolor?: string;
- backgroundcolor?: string;
- bordercolor?: string;
- textcolor?: string;
+ barcolor?: string;
+ backgroundcolor?: string;
+ bordercolor?: string;
+ textcolor?: string;
- addontextxoffset?: number;
- addontextyoffset?: number;
- addontextfont?: string;
- addontextsize?: number;
+ addontextxoffset?: number;
+ addontextyoffset?: number;
+ addontextfont?: string;
+ addontextsize?: number;
- guardwhitespace?: boolean;
- guardwidth?: number;
- guardheight?: number;
- guardleftpos?: number;
- guardrightpos?: number;
- guardleftypos?: number;
- guardrightypos?: number;
+ guardwhitespace?: boolean;
+ guardwidth?: number;
+ guardheight?: number;
+ guardleftpos?: number;
+ guardrightpos?: number;
+ guardleftypos?: number;
+ guardrightypos?: number;
- sizelimit?: number;
+ sizelimit?: number;
- includecheck?: boolean;
- includecheckintext?: boolean;
+ includecheck?: boolean;
+ includecheckintext?: boolean;
- inkspread?: number;
- inkspreadh?: number;
- inkspreadv?: number;
- }
+ inkspread?: number;
+ inkspreadh?: number;
+ inkspreadv?: number;
}
-
-
- function BwipJs(req: Request, res: Response, opts?:BwipJs.ToBufferOptions): void;
-
- export = BwipJs;
}
+
+declare function BwipJs(req: Request, res: Response, opts?:BwipJs.ToBufferOptions): void;
+
+export = BwipJs;
diff --git a/bwip-js/tsconfig.json b/bwip-js/tsconfig.json
new file mode 100644
index 0000000000..33e3e21f35
--- /dev/null
+++ b/bwip-js/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": true,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "bwip-js-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/fossil-delta/fossil-delta-tests.ts b/fossil-delta/fossil-delta-tests.ts
index 113757c677..f3a7635a7c 100644
--- a/fossil-delta/fossil-delta-tests.ts
+++ b/fossil-delta/fossil-delta-tests.ts
@@ -1,4 +1,3 @@
-///
import * as fossilDelta from "fossil-delta";
var origin = new Array(1,2,3);
diff --git a/fossil-delta/index.d.ts b/fossil-delta/index.d.ts
index fddb8f50af..c72e914df6 100644
--- a/fossil-delta/index.d.ts
+++ b/fossil-delta/index.d.ts
@@ -3,11 +3,10 @@
// Definitions by: Endel Dreyer
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
-declare module "fossil-delta" {
- type ByteArray = Array | Uint8Array | Buffer;
+///
- export function create(origin: ByteArray, target: ByteArray): Array;
- export function apply(origin: ByteArray, delta: Array): Array;
- export function outputSize(delta: Array): number;
-}
+type ByteArray = Array | Uint8Array | Buffer;
+
+export function create(origin: ByteArray, target: ByteArray): Array;
+export function apply(origin: ByteArray, delta: Array): Array;
+export function outputSize(delta: Array): number;
diff --git a/fossil-delta/tsconfig.json b/fossil-delta/tsconfig.json
new file mode 100644
index 0000000000..434d0761b7
--- /dev/null
+++ b/fossil-delta/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": true,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "fossil-delta-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/gulp-cache/gulp-cache-tests.ts b/gulp-cache/gulp-cache-tests.ts
index 2efa3975fc..31df7b0259 100644
--- a/gulp-cache/gulp-cache-tests.ts
+++ b/gulp-cache/gulp-cache-tests.ts
@@ -1,6 +1,3 @@
-///
-///
-
import * as fs from "fs";
import * as gulp from "gulp";
import * as cache from "gulp-cache";
@@ -29,7 +26,7 @@ var jsHintVersion = '2.4.1',
jshintOptions = fs.readFileSync('.jshintrc');
function makeHashKey(file: File) {
- return [file.contents.toString('utf8'), jsHintVersion, jshintOptions].join('');
+ return [(file.contents as Buffer).toString('utf8'), jsHintVersion, jshintOptions].join('');
}
gulp.task('clear', function (done: any) {
diff --git a/gulp-cache/index.d.ts b/gulp-cache/index.d.ts
index cfb1cb2514..d576427f3d 100644
--- a/gulp-cache/index.d.ts
+++ b/gulp-cache/index.d.ts
@@ -3,92 +3,88 @@
// Definitions by: Arun Aravind
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
-///
-///
+///
-declare module "gulp-cache" {
- import File = require("vinyl");
- import { Transform } from "stream";
- import { PluginError } from "gulp-util";
+import File = require("vinyl");
+import { Transform } from "stream";
+import { PluginError } from "gulp-util";
- namespace gc {
- type Predicate = (arg: T) => boolean;
+declare namespace gc {
+ type Predicate = (arg: T) => boolean;
- interface IGulpCacheOptions {
- /**
- * The cache instance to use for caching.
- */
- fileCache?: IGulpCache;
-
- /**
- * The name of the bucket which stores the cached objects.
- * Default value = 'default'
- */
- name?: string,
-
- /**
- * The hash generator to use.
- */
- key?: (file: File, callback?: (err: any, result: string) => void) => string | Promise;
-
- /**
- * Value representing the success of a task.
- */
- success?: boolean | Predicate;
-
- /**
- * Content that is to be cached.
- */
- value?: (result: any) => Object | Promise