diff --git a/angular-animate/tsconfig.json b/angular-animate/tsconfig.json
index 81f1a4a364..a76d9cbdb5 100644
--- a/angular-animate/tsconfig.json
+++ b/angular-animate/tsconfig.json
@@ -13,6 +13,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-cookies/tsconfig.json b/angular-cookies/tsconfig.json
index 81f1a4a364..a76d9cbdb5 100644
--- a/angular-cookies/tsconfig.json
+++ b/angular-cookies/tsconfig.json
@@ -13,6 +13,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-deferred-bootstrap/tsconfig.json b/angular-deferred-bootstrap/tsconfig.json
index aa3c166f61..cd3ad35519 100644
--- a/angular-deferred-bootstrap/tsconfig.json
+++ b/angular-deferred-bootstrap/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-mocks/tsconfig.json b/angular-mocks/tsconfig.json
index b53af4d397..68a8f53b3c 100644
--- a/angular-mocks/tsconfig.json
+++ b/angular-mocks/tsconfig.json
@@ -15,6 +15,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-q-spread/tsconfig.json b/angular-q-spread/tsconfig.json
index 90110b0e9f..3461eaa2db 100644
--- a/angular-q-spread/tsconfig.json
+++ b/angular-q-spread/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-resource/tsconfig.json b/angular-resource/tsconfig.json
index fe51bc7293..6bff757b93 100644
--- a/angular-resource/tsconfig.json
+++ b/angular-resource/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-route/tsconfig.json b/angular-route/tsconfig.json
index 96c224daaf..3301b843a3 100644
--- a/angular-route/tsconfig.json
+++ b/angular-route/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-sanitize/tsconfig.json b/angular-sanitize/tsconfig.json
index c029bece36..96bc483afb 100644
--- a/angular-sanitize/tsconfig.json
+++ b/angular-sanitize/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-websocket/tsconfig.json b/angular-websocket/tsconfig.json
index 7579a1591c..a340f7ffbd 100644
--- a/angular-websocket/tsconfig.json
+++ b/angular-websocket/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular-xeditable/tsconfig.json b/angular-xeditable/tsconfig.json
index e9a9c10c51..e81407b730 100644
--- a/angular-xeditable/tsconfig.json
+++ b/angular-xeditable/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/angular/tsconfig.json b/angular/tsconfig.json
index ea2099d486..e0d792766a 100644
--- a/angular/tsconfig.json
+++ b/angular/tsconfig.json
@@ -14,6 +14,6 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": false
+ "forceConsistentCasingInFileNames": true
}
}
\ No newline at end of file
diff --git a/async-polling/async-polling-tests.ts b/async-polling/async-polling-tests.ts
index ec9e5200f2..82adc0299e 100644
--- a/async-polling/async-polling-tests.ts
+++ b/async-polling/async-polling-tests.ts
@@ -1,6 +1,4 @@
-///
-
-import * as AsyncPolling from "async-polling";
+import AsyncPolling = require("async-polling");
// Tests based on examples in https://github.com/cGuille/async-polling#readme
diff --git a/async-polling/async-polling.d.ts b/async-polling/async-polling.d.ts
deleted file mode 100644
index 579d041e37..0000000000
--- a/async-polling/async-polling.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// Type definitions for AsyncPolling
-// Project: https://github.com/cGuille/async-polling
-// Definitions by: Zlatko Andonovski
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module "async-polling" {
- module AsyncPolling {
- export type EventName = "run"|"start"|"error"|"result"|"end"|"schedule"|"stop";
- }
-
- function AsyncPolling(pollingFunc: (end: (err?: Error, result?: Result) => any) => any, delay: number): {
- run: () => any;
- stop: () => any;
- on: (eventName: AsyncPolling.EventName, listener: Function) => any;
- }
-
- export = AsyncPolling;
-}
\ No newline at end of file
diff --git a/async-polling/index.d.ts b/async-polling/index.d.ts
new file mode 100644
index 0000000000..640c863874
--- /dev/null
+++ b/async-polling/index.d.ts
@@ -0,0 +1,16 @@
+// Type definitions for AsyncPolling
+// Project: https://github.com/cGuille/async-polling
+// Definitions by: Zlatko Andonovski
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+declare namespace AsyncPolling {
+ export type EventName = "run"|"start"|"error"|"result"|"end"|"schedule"|"stop";
+}
+
+declare function AsyncPolling(pollingFunc: (end: (err?: Error, result?: Result) => any) => any, delay: number): {
+ run: () => any;
+ stop: () => any;
+ on: (eventName: AsyncPolling.EventName, listener: Function) => any;
+}
+
+export = AsyncPolling;
\ No newline at end of file
diff --git a/async-polling/tsconfig.json b/async-polling/tsconfig.json
new file mode 100644
index 0000000000..0611af7c76
--- /dev/null
+++ b/async-polling/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": false,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "async-polling-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/awesomplete/awesomplete-tests.ts b/awesomplete/awesomplete-tests.ts
index 8132ad4555..11abfdcba0 100644
--- a/awesomplete/awesomplete-tests.ts
+++ b/awesomplete/awesomplete-tests.ts
@@ -1,5 +1,3 @@
-///
-
var input = document.getElementById("myinput");
new Awesomplete(input, {list: "#mylist"});
diff --git a/awesomplete/awesomplete.d.ts b/awesomplete/index.d.ts
similarity index 100%
rename from awesomplete/awesomplete.d.ts
rename to awesomplete/index.d.ts
diff --git a/awesomplete/tsconfig.json b/awesomplete/tsconfig.json
new file mode 100644
index 0000000000..d76ee637ec
--- /dev/null
+++ b/awesomplete/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": false,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "awesomplete-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/bases/bases-tests.ts b/bases/bases-tests.ts
index 5414b18764..85aa71406e 100644
--- a/bases/bases-tests.ts
+++ b/bases/bases-tests.ts
@@ -1,10 +1,9 @@
-///
import * as bases from 'bases';
-
-let bs16String: string = bases.toBase(200, 16); // => 'c8'
-let bs62String: string = bases.toBase(99999, 62); // => 'q0T'
-let customBaseString: string = bases.toAlphabet(300, 'aAbBcC'); // => 'Abba'
-
-let frombs16Int: number = bases.fromBase('c8', 16); // => 200
-let frombs62Int: number = bases.fromBase('q0T', 62); // => 99999
-let customBaseInt: number = bases.fromAlphabet('Abba', 'aAbBcC'); // => 300
+
+let bs16String: string = bases.toBase(200, 16); // => 'c8'
+let bs62String: string = bases.toBase(99999, 62); // => 'q0T'
+let customBaseString: string = bases.toAlphabet(300, 'aAbBcC'); // => 'Abba'
+
+let frombs16Int: number = bases.fromBase('c8', 16); // => 200
+let frombs62Int: number = bases.fromBase('q0T', 62); // => 99999
+let customBaseInt: number = bases.fromAlphabet('Abba', 'aAbBcC'); // => 300
diff --git a/bases/bases.d.ts b/bases/bases.d.ts
deleted file mode 100644
index 2e62cf685a..0000000000
--- a/bases/bases.d.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-// Type definitions for bases 0.2.1
-// Project: https://github.com/aseemk/bases.js
-// Definitions by: Hari Krishna
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module "bases" {
- export function toAlphabet(num: number, alphabet: string): string;
-
- export function fromAlphabet(str: string, alphabet: string): number;
-
- export function toBase(num: number, base: number): string;
-
- export function fromBase(str: string, base:number): number;
-
- export let KNOWN_ALPHABETS: any;
-
- export let NUMERALS: string;
-
- export let LETTERS_LOWERCASE: string;
-
- export let LETTERS_UPPERCASE: string;
-}
diff --git a/bases/index.d.ts b/bases/index.d.ts
new file mode 100644
index 0000000000..2111daddf6
--- /dev/null
+++ b/bases/index.d.ts
@@ -0,0 +1,20 @@
+// Type definitions for bases 0.2.1
+// Project: https://github.com/aseemk/bases.js
+// Definitions by: Hari Krishna
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+export function toAlphabet(num: number, alphabet: string): string;
+
+export function fromAlphabet(str: string, alphabet: string): number;
+
+export function toBase(num: number, base: number): string;
+
+export function fromBase(str: string, base:number): number;
+
+export let KNOWN_ALPHABETS: any;
+
+export let NUMERALS: string;
+
+export let LETTERS_LOWERCASE: string;
+
+export let LETTERS_UPPERCASE: string;
diff --git a/bases/tsconfig.json b/bases/tsconfig.json
new file mode 100644
index 0000000000..a8df7c46d9
--- /dev/null
+++ b/bases/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",
+ "bases-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/bonjour/bonjour-tests.ts b/bonjour/bonjour-tests.ts
index b97794b071..1ae8a218fe 100644
--- a/bonjour/bonjour-tests.ts
+++ b/bonjour/bonjour-tests.ts
@@ -1,4 +1,3 @@
-///
import * as bonjour from 'bonjour';
var bonjourOptions: bonjour.BonjourOptions;
diff --git a/bonjour/bonjour.d.ts b/bonjour/bonjour.d.ts
deleted file mode 100644
index 0ffd9f1171..0000000000
--- a/bonjour/bonjour.d.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-// Type definitions for bonjour v3.5.0
-// Project: https://github.com/watson/bonjour
-// Definitions by: Quentin Lampin
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module "bonjour" {
- export interface BonjourOptions {
- multicast?: boolean;
- interface?: string;
- port?: number;
- ip?: string;
- ttl?: number;
- loopback?: boolean;
- reuseAddr?: boolean;
- }
-
- export interface BrowserOptions {
- type?: string;
- subtypes?: string[];
- protocol?: string;
- txt?: Object;
- }
-
- export interface ServiceOptions {
- name: string;
- host?: string;
- port: number;
- type: string;
- subtypes?: string[];
- protocol?: 'udp'|'tcp';
- txt?: Object;
- }
-
- export interface Service {
- name: string;
- type: string;
- subtypes: string[];
- protocol: string;
- host: string;
- port: number;
- fqdn: string;
- rawTxt: Object;
- txt: Object;
- published: boolean;
-
- stop: (cb: ()=>any) => void;
- start: () => void;
- }
-
- export class Bonjour {
-
- constructor(opts: BonjourOptions);
- publish(options: ServiceOptions):Service;
- unpublishAll(cb: ()=>any): void;
- find(options:BrowserOptions, onUp: ()=>any): Browser;
- findOne(options:any, cb: (service: Service)=>any): Browser;
- destroy():void;
- }
-
- export class Browser {
- services: Service[];
-
- start():void;
- update():void;
- stop():void;
- }
-
- export function find(options: BrowserOptions, onUp?: ()=>any): Browser;
- export function findOne(options: BrowserOptions): Browser;
-
-}
diff --git a/bonjour/index.d.ts b/bonjour/index.d.ts
new file mode 100644
index 0000000000..0eb5b584c0
--- /dev/null
+++ b/bonjour/index.d.ts
@@ -0,0 +1,68 @@
+// Type definitions for bonjour v3.5.0
+// Project: https://github.com/watson/bonjour
+// Definitions by: Quentin Lampin
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+export interface BonjourOptions {
+ multicast?: boolean;
+ interface?: string;
+ port?: number;
+ ip?: string;
+ ttl?: number;
+ loopback?: boolean;
+ reuseAddr?: boolean;
+}
+
+export interface BrowserOptions {
+ type?: string;
+ subtypes?: string[];
+ protocol?: string;
+ txt?: Object;
+}
+
+export interface ServiceOptions {
+ name: string;
+ host?: string;
+ port: number;
+ type: string;
+ subtypes?: string[];
+ protocol?: 'udp'|'tcp';
+ txt?: Object;
+}
+
+export interface Service {
+ name: string;
+ type: string;
+ subtypes: string[];
+ protocol: string;
+ host: string;
+ port: number;
+ fqdn: string;
+ rawTxt: Object;
+ txt: Object;
+ published: boolean;
+
+ stop: (cb: ()=>any) => void;
+ start: () => void;
+}
+
+export class Bonjour {
+
+ constructor(opts: BonjourOptions);
+ publish(options: ServiceOptions):Service;
+ unpublishAll(cb: ()=>any): void;
+ find(options:BrowserOptions, onUp: ()=>any): Browser;
+ findOne(options:any, cb: (service: Service)=>any): Browser;
+ destroy():void;
+}
+
+export class Browser {
+ services: Service[];
+
+ start():void;
+ update():void;
+ stop():void;
+}
+
+export function find(options: BrowserOptions, onUp?: ()=>any): Browser;
+export function findOne(options: BrowserOptions): Browser;
diff --git a/bonjour/tsconfig.json b/bonjour/tsconfig.json
new file mode 100644
index 0000000000..07715bfe01
--- /dev/null
+++ b/bonjour/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",
+ "bonjour-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/chunked-dc/chunked-dc-tests.ts b/chunked-dc/chunked-dc-tests.ts
index 304d26e952..8e1ee9f00f 100644
--- a/chunked-dc/chunked-dc-tests.ts
+++ b/chunked-dc/chunked-dc-tests.ts
@@ -1,5 +1,3 @@
-///
-
// Chunker
let chunker = new Chunker(1337, Uint8Array.of(1,2,3), 2);
diff --git a/chunked-dc/chunked-dc.tscparams b/chunked-dc/chunked-dc.tscparams
deleted file mode 100644
index ed262d8039..0000000000
--- a/chunked-dc/chunked-dc.tscparams
+++ /dev/null
@@ -1 +0,0 @@
---target es2015 --noImplicitAny
diff --git a/chunked-dc/chunked-dc.d.ts b/chunked-dc/index.d.ts
similarity index 100%
rename from chunked-dc/chunked-dc.d.ts
rename to chunked-dc/index.d.ts
diff --git a/chunked-dc/tsconfig.json b/chunked-dc/tsconfig.json
new file mode 100644
index 0000000000..d2791d64e6
--- /dev/null
+++ b/chunked-dc/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",
+ "chunked-dc-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/clipboard-js/clipboard-js-tests.ts b/clipboard-js/clipboard-js-tests.ts
index 93adfda3a5..ef1bfbdf5d 100644
--- a/clipboard-js/clipboard-js-tests.ts
+++ b/clipboard-js/clipboard-js-tests.ts
@@ -1,5 +1,3 @@
-///
-
clipboard.copy("Hello World");
clipboard.copy(document.body).then(() => console.log("success"));
diff --git a/clipboard-js/clipboard-js.d.ts b/clipboard-js/index.d.ts
similarity index 88%
rename from clipboard-js/clipboard-js.d.ts
rename to clipboard-js/index.d.ts
index fafc44ef36..8c71b8ed7e 100644
--- a/clipboard-js/clipboard-js.d.ts
+++ b/clipboard-js/index.d.ts
@@ -13,6 +13,5 @@ declare namespace clipboard {
declare var clipboard: clipboard.IClipboardJsStatic;
-declare module 'clipboard-js' {
- export = clipboard;
-}
+export = clipboard;
+export as namespace clipboard;
diff --git a/clipboard-js/tsconfig.json b/clipboard-js/tsconfig.json
new file mode 100644
index 0000000000..ffd1667f40
--- /dev/null
+++ b/clipboard-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",
+ "clipboard-js-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/ejson/ejson-tests.ts b/ejson/ejson-tests.ts
index ef9b940bb8..1902849b3d 100644
--- a/ejson/ejson-tests.ts
+++ b/ejson/ejson-tests.ts
@@ -1,8 +1,6 @@
-///
-
import {
- clone as importedClone,
- parse as importedParse,
+ clone as importedClone,
+ parse as importedParse,
stringify as importedStringify,
toJSONValue as importedToJSONValue,
fromJSONValue as importedFromJSONValue,
diff --git a/ejson/ejson.d.ts b/ejson/ejson.d.ts
deleted file mode 100644
index 029222239c..0000000000
--- a/ejson/ejson.d.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-// Type definitions for ejson v2.1.2
-// Project: https://www.npmjs.com/package/ejson
-// Definitions by: Shantanu Bhadoria
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-
-declare module "ejson" {
- interface StringifyOptions {
- canonical: boolean;
- indent: boolean|number|string;
- }
-
- interface CloneOptions {
- keyOrderSensitive: boolean;
- }
-
- function clone(obj: T): T;
- function parse(str: string): any;
- function stringify(obj: any, options?: StringifyOptions): string;
-
- function toJSONValue(obj: any): string;
- function fromJSONValue(obj: string): any;
- function isBinary(value: any): boolean;
- function newBinary(len: number): Uint8Array;
- function equals(a: any, b: any, options?: CloneOptions): boolean;
-}
diff --git a/ejson/index.d.ts b/ejson/index.d.ts
new file mode 100644
index 0000000000..d2882646eb
--- /dev/null
+++ b/ejson/index.d.ts
@@ -0,0 +1,23 @@
+// Type definitions for ejson v2.1.2
+// Project: https://www.npmjs.com/package/ejson
+// Definitions by: Shantanu Bhadoria
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+interface StringifyOptions {
+ canonical: boolean;
+ indent: boolean|number|string;
+}
+
+interface CloneOptions {
+ keyOrderSensitive: boolean;
+}
+
+export function clone(obj: T): T;
+export function parse(str: string): any;
+export function stringify(obj: any, options?: StringifyOptions): string;
+
+export function toJSONValue(obj: any): string;
+export function fromJSONValue(obj: string): any;
+export function isBinary(value: any): boolean;
+export function newBinary(len: number): Uint8Array;
+export function equals(a: any, b: any, options?: CloneOptions): boolean;
diff --git a/ejson/tsconfig.json b/ejson/tsconfig.json
new file mode 100644
index 0000000000..45ff41e26b
--- /dev/null
+++ b/ejson/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",
+ "ejson-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/jstimezonedetect/jstimezonedetect.d.ts b/jstimezonedetect/index.d.ts
similarity index 100%
rename from jstimezonedetect/jstimezonedetect.d.ts
rename to jstimezonedetect/index.d.ts
diff --git a/ldclient-js/ldclient-js.d.ts b/ldclient-js/index.d.ts
similarity index 100%
rename from ldclient-js/ldclient-js.d.ts
rename to ldclient-js/index.d.ts
diff --git a/ldclient-js/ldclient-js-tests.ts b/ldclient-js/ldclient-js-tests.ts
index cf4ec2b2b6..3b7ea30125 100644
--- a/ldclient-js/ldclient-js-tests.ts
+++ b/ldclient-js/ldclient-js-tests.ts
@@ -1,5 +1,3 @@
-///
-
// Implicitly calls LDClient#identify
const ldClient = LDClient.initialize(
'ENV KEY',
@@ -27,6 +25,6 @@ function changeCallback(changes: LaunchDarkly.LDFlagChangeset) {
ldClient.on('change', changeCallback);
-document.getElementById('disable-change-tracking').addEventListener('click', () => {
+document.getElementById('disable-change-tracking')!.addEventListener('click', () => {
ldClient.off('change', changeCallback);
});
diff --git a/ldclient-js/tsconfig.json b/ldclient-js/tsconfig.json
new file mode 100644
index 0000000000..37c3af1f5a
--- /dev/null
+++ b/ldclient-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",
+ "ldclient-js-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/qrcode/qrcode.d.ts b/qrcode/index.d.ts
similarity index 100%
rename from qrcode/qrcode.d.ts
rename to qrcode/index.d.ts
diff --git a/qrcode/qrcode-tests.ts b/qrcode/qrcode-tests.ts
index dc1e539a8e..eecfb4a0d1 100644
--- a/qrcode/qrcode-tests.ts
+++ b/qrcode/qrcode-tests.ts
@@ -1,5 +1,3 @@
-///
-
import * as QRCode from 'qrcode';
QRCode.toDataURL('i am a pony!', function (err, url) {
diff --git a/qrcode/tsconfig.json b/qrcode/tsconfig.json
new file mode 100644
index 0000000000..574c440f00
--- /dev/null
+++ b/qrcode/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",
+ "qrcode-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/quoted-printable/index.d.ts b/quoted-printable/index.d.ts
new file mode 100644
index 0000000000..859c724b38
--- /dev/null
+++ b/quoted-printable/index.d.ts
@@ -0,0 +1,25 @@
+// Type definitions for quoted-printable v0.2.1
+// Project: https://github.com/mathiasbynens/quoted-printable
+// Definitions by: Jeffery Grajkowski
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+/**
+ * A string representing the semantic version number.
+ */
+export const version: string;
+
+/**
+ * This function takes an encoded byte string (the input
+ * parameter) and Quoted-Printable-encodes it. Each item
+ * in the input string represents an octet as per the
+ * desired character encoding.
+ */
+export function encode(input: string): string;
+
+/**
+ * This function takes a string of text (the text parameter)
+ * and Quoted-Printable-decodes it. The return value is a
+ * ‘byte string’, i.e. a string of which each item represents
+ * an octet as per the character encoding that’s being used.
+ */
+export function decode(input: string): string;
diff --git a/quoted-printable/quoted-printable-tests.ts b/quoted-printable/quoted-printable-tests.ts
index c13580bbf9..e720431450 100644
--- a/quoted-printable/quoted-printable-tests.ts
+++ b/quoted-printable/quoted-printable-tests.ts
@@ -1,6 +1,3 @@
-///
-///
-
import * as quotedPrintable from "quoted-printable";
import * as utf8 from "utf8";
diff --git a/quoted-printable/quoted-printable.d.ts b/quoted-printable/quoted-printable.d.ts
deleted file mode 100644
index 2d3edceb0a..0000000000
--- a/quoted-printable/quoted-printable.d.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-// Type definitions for quoted-printable v0.2.1
-// Project: https://github.com/mathiasbynens/quoted-printable
-// Definitions by: Jeffery Grajkowski
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module "quoted-printable" {
- /**
- * A string representing the semantic version number.
- */
- export const version: string;
-
- /**
- * This function takes an encoded byte string (the input
- * parameter) and Quoted-Printable-encodes it. Each item
- * in the input string represents an octet as per the
- * desired character encoding.
- */
- export function encode(input: string): string;
-
- /**
- * This function takes a string of text (the text parameter)
- * and Quoted-Printable-decodes it. The return value is a
- * ‘byte string’, i.e. a string of which each item represents
- * an octet as per the character encoding that’s being used.
- */
- export function decode(input: string): string;
-}
diff --git a/quoted-printable/tsconfig.json b/quoted-printable/tsconfig.json
new file mode 100644
index 0000000000..483bd6b12f
--- /dev/null
+++ b/quoted-printable/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",
+ "quoted-printable-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/react-native-orientation/index.d.ts b/react-native-orientation/index.d.ts
new file mode 100644
index 0000000000..03139b20dd
--- /dev/null
+++ b/react-native-orientation/index.d.ts
@@ -0,0 +1,25 @@
+// Type definitions for react-native-orientation
+// Project: https://github.com/yamill/react-native-orientation
+// Definitions by: Moshe Atlow
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+declare namespace Orientation {
+ type orientation = "LANDSCAPE" | "PORTRAIT" | "UNKNOWN" | "PORTRAITUPSIDEDOWN";
+ type specificOrientation = "LANDSCAPE-LEFT" | "LANDSCAPE-RIGHT" | "PORTRAIT" | "UNKNOWN" | "PORTRAITUPSIDEDOWN";
+
+ export function addOrientationListener(callback: (orientation: orientation) => void): void;
+ export function removeOrientationListener(callback: (orientation: orientation) => void): void;
+ export function addSpecificOrientationListener(callback: (specificOrientation: specificOrientation) => void): void;
+ export function removeSpecificOrientationListener(callback: (specificOrientation: specificOrientation) => void): void;
+
+ export function getInitialOrientation(): orientation;
+ export function lockToPortrait(): void;
+ export function lockToLandscape(): void;
+ export function lockToLandscapeLeft(): void;
+ export function lockToLandscapeRight(): void;
+ export function unlockAllOrientations(): void;
+ export function getOrientation(callback: (err: Error, orientation: orientation) => void): void;
+ export function getSpecificOrientation(callback: (err: Error, orientation: specificOrientation) => void): void;
+}
+
+export = Orientation;
diff --git a/react-native-orientation/react-native-orientation-tests.ts b/react-native-orientation/react-native-orientation-tests.ts
index 23e3c468c4..66094b4b0a 100644
--- a/react-native-orientation/react-native-orientation-tests.ts
+++ b/react-native-orientation/react-native-orientation-tests.ts
@@ -1,5 +1,3 @@
-///
-
import * as Orientation from 'react-native-orientation';
Orientation.addOrientationListener((orientation)=>{});
diff --git a/react-native-orientation/react-native-orientation.d.ts b/react-native-orientation/react-native-orientation.d.ts
deleted file mode 100644
index 1ee7d6f929..0000000000
--- a/react-native-orientation/react-native-orientation.d.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-// Type definitions for react-native-orientation
-// Project: https://github.com/yamill/react-native-orientation
-// Definitions by: Moshe Atlow
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module 'react-native-orientation' {
-
- namespace Orientation {
- type orientation = "LANDSCAPE" | "PORTRAIT" | "UNKNOWN" | "PORTRAITUPSIDEDOWN";
- type specificOrientation = "LANDSCAPE-LEFT" | "LANDSCAPE-RIGHT" | "PORTRAIT" | "UNKNOWN" | "PORTRAITUPSIDEDOWN";
-
- export function addOrientationListener(callback: (orientation: orientation) => void): void;
- export function removeOrientationListener(callback: (orientation: orientation) => void): void;
- export function addSpecificOrientationListener(callback: (specificOrientation: specificOrientation) => void): void;
- export function removeSpecificOrientationListener(callback: (specificOrientation: specificOrientation) => void): void;
-
- export function getInitialOrientation(): orientation;
- export function lockToPortrait(): void;
- export function lockToLandscape(): void;
- export function lockToLandscapeLeft(): void;
- export function lockToLandscapeRight(): void;
- export function unlockAllOrientations(): void;
- export function getOrientation(callback: (err: Error, orientation: orientation) => void): void;
- export function getSpecificOrientation(callback: (err: Error, orientation: specificOrientation) => void): void;
- }
-
- export = Orientation;
-}
diff --git a/react-native-orientation/tsconfig.json b/react-native-orientation/tsconfig.json
new file mode 100644
index 0000000000..074272f98d
--- /dev/null
+++ b/react-native-orientation/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",
+ "react-native-orientation-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/request-promise-native/index.d.ts b/request-promise-native/index.d.ts
new file mode 100644
index 0000000000..7eadce54aa
--- /dev/null
+++ b/request-promise-native/index.d.ts
@@ -0,0 +1,31 @@
+// Type definitions for request-promise-native v1.0.3
+// Project: https://github.com/request/request-promise-native
+// Definitions by: Gustavo Henke
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+import request = require('request');
+import http = require('http');
+
+declare namespace requestPromise {
+ interface RequestPromise extends request.Request {
+ then(onfulfilled?: (value: any) => TResult | PromiseLike, onrejected?: (reason: any) => TResult | PromiseLike): Promise;
+ then(onfulfilled?: (value: any) => TResult | PromiseLike, onrejected?: (reason: any) => void): Promise;
+ catch(onrejected?: (reason: any) => any | PromiseLike): Promise;
+ catch(onrejected?: (reason: any) => void): Promise;
+ promise(): Promise;
+ cancel(): void;
+ }
+
+ interface RequestPromiseOptions extends request.CoreOptions {
+ simple?: boolean;
+ transform?: (body: any, response: http.IncomingMessage, resolveWithFullResponse?: boolean) => any;
+ resolveWithFullResponse?: boolean;
+ }
+
+ export type OptionsWithUri = request.UriOptions & RequestPromiseOptions;
+ export type OptionsWithUrl = request.UrlOptions & RequestPromiseOptions;
+ export type Options = OptionsWithUri | OptionsWithUrl;
+}
+
+declare var requestPromise: request.RequestAPI;
+export = requestPromise;
diff --git a/request-promise-native/request-promise-native-tests.ts b/request-promise-native/request-promise-native-tests.ts
index 7c28ed1017..4267351328 100644
--- a/request-promise-native/request-promise-native-tests.ts
+++ b/request-promise-native/request-promise-native-tests.ts
@@ -1,5 +1,3 @@
-///
-
import * as rp from 'request-promise-native';
rp('http://www.google.com')
diff --git a/request-promise-native/request-promise-native.d.ts b/request-promise-native/request-promise-native.d.ts
deleted file mode 100644
index 33e847bf6b..0000000000
--- a/request-promise-native/request-promise-native.d.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// Type definitions for request-promise-native v1.0.3
-// Project: https://github.com/request/request-promise-native
-// Definitions by: Gustavo Henke
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-///
-
-declare module 'request-promise-native' {
- import request = require('request');
- import http = require('http');
-
- namespace requestPromise {
- interface RequestPromise extends request.Request {
- then(onfulfilled?: (value: any) => TResult | PromiseLike, onrejected?: (reason: any) => TResult | PromiseLike): Promise;
- then(onfulfilled?: (value: any) => TResult | PromiseLike, onrejected?: (reason: any) => void): Promise;
- catch(onrejected?: (reason: any) => any | PromiseLike): Promise;
- catch(onrejected?: (reason: any) => void): Promise;
- promise(): Promise;
- cancel(): void;
- }
-
- interface RequestPromiseOptions extends request.CoreOptions {
- simple?: boolean;
- transform?: (body: any, response: http.IncomingMessage, resolveWithFullResponse?: boolean) => any;
- resolveWithFullResponse?: boolean;
- }
-
- export type OptionsWithUri = request.UriOptions & RequestPromiseOptions;
- export type OptionsWithUrl = request.UrlOptions & RequestPromiseOptions;
- export type Options = OptionsWithUri | OptionsWithUrl;
- }
-
- var requestPromise: request.RequestAPI;
- export = requestPromise;
-}
diff --git a/request-promise-native/tsconfig.json b/request-promise-native/tsconfig.json
new file mode 100644
index 0000000000..0edf04e8ec
--- /dev/null
+++ b/request-promise-native/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": false,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "request-promise-native-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/sass-graph/sass-graph.d.ts b/sass-graph/index.d.ts
similarity index 97%
rename from sass-graph/sass-graph.d.ts
rename to sass-graph/index.d.ts
index ccc5b45995..26c3d26d20 100644
--- a/sass-graph/sass-graph.d.ts
+++ b/sass-graph/index.d.ts
@@ -76,6 +76,5 @@ declare namespace SassGraph {
export function parseDir(dirpath: string, options?: Options): Graph;
}
-declare module "sass-graph" {
- export = SassGraph;
-}
+export = SassGraph;
+export as namespace SassGraph;
diff --git a/sass-graph/sass-graph-tests.ts b/sass-graph/sass-graph-tests.ts
index 1e9c65470d..a67154dda5 100644
--- a/sass-graph/sass-graph-tests.ts
+++ b/sass-graph/sass-graph-tests.ts
@@ -1,5 +1,3 @@
-///
-
import { parseFile, parseDir, Graph } from "sass-graph";
// Example copied from readme:
diff --git a/sass-graph/tsconfig.json b/sass-graph/tsconfig.json
new file mode 100644
index 0000000000..41e6e1bb4c
--- /dev/null
+++ b/sass-graph/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",
+ "sass-graph-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/shopify-buy/shopify-buy.d.ts b/shopify-buy/index.d.ts
similarity index 100%
rename from shopify-buy/shopify-buy.d.ts
rename to shopify-buy/index.d.ts
diff --git a/shopify-buy/shopify-buy-tests.ts b/shopify-buy/shopify-buy-tests.ts
index 3d8d1f5988..58f8e9288f 100644
--- a/shopify-buy/shopify-buy-tests.ts
+++ b/shopify-buy/shopify-buy-tests.ts
@@ -1,5 +1,4 @@
-///
-///
+///
/* Build new ShopifyBuy client
============================================================ */
diff --git a/shopify-buy/tsconfig.json b/shopify-buy/tsconfig.json
new file mode 100644
index 0000000000..4b600adf4a
--- /dev/null
+++ b/shopify-buy/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": false,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "shopify-buy-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/string-template/string-template.d.ts b/string-template/index.d.ts
similarity index 100%
rename from string-template/string-template.d.ts
rename to string-template/index.d.ts
diff --git a/string-template/string-template-tests.ts b/string-template/string-template-tests.ts
index 2c9623c3f6..90e852e2f1 100644
--- a/string-template/string-template-tests.ts
+++ b/string-template/string-template-tests.ts
@@ -1,4 +1,3 @@
-///
import * as format from "string-template";
import * as compile from "string-template/compile";
@@ -6,21 +5,21 @@ import * as compile from "string-template/compile";
namespace format_tests {
let greeting: string;
- // Format using an object hash with keys matching [0-9a-zA-Z]+
+ // Format using an object hash with keys matching [0-9a-zA-Z]+
greeting = format("Hello {name}, you have {count} unread messages", { name: "Robert", count: 12 })
- // greeting -> "Hello Robert, you have 12 unread messages"
+ // greeting -> "Hello Robert, you have 12 unread messages"
- // Format using a number indexed array
+ // Format using a number indexed array
greeting = format("Hello {0}, you have {1} unread messages", ["Robert", 12])
- // greeting -> "Hello Robert, you have 12 unread messages"
+ // greeting -> "Hello Robert, you have 12 unread messages"
- // Format using optional arguments
+ // Format using optional arguments
greeting = format("Hello {0}, you have {1} unread messages", "Robert", 12)
- // greeting -> "Hello Robert, you have 12 unread messages"
+ // greeting -> "Hello Robert, you have 12 unread messages"
- // Escape {} pairs by using double {{}}
+ // Escape {} pairs by using double {{}}
let text: string = format("{{0}}")
- // text -> "{0}"
+ // text -> "{0}"
}
@@ -28,14 +27,14 @@ namespace compile_tests {
{
let greetingTemplate = compile("Hello {0}, you have {1} unread messages", true)
- // -> greetingTemplate generated using new Function
+ // -> greetingTemplate generated using new Function
let greeting = greetingTemplate("Robert", 12)
// -> "Hello Robert, you have 12 unread messages"
}
{
let greetingTemplate = compile("Hello {0}, you have {1} unread messages", true)
- // -> greetingTemplate generated using new Function
+ // -> greetingTemplate generated using new Function
let greeting = greetingTemplate(["Robert", 12])
// -> "Hello Robert, you have 12 unread messages"
diff --git a/string-template/tsconfig.json b/string-template/tsconfig.json
new file mode 100644
index 0000000000..e1b4a16335
--- /dev/null
+++ b/string-template/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",
+ "string-template-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/tesseract.js/tesseract.js.d.ts b/tesseract.js/index.d.ts
similarity index 95%
rename from tesseract.js/tesseract.js.d.ts
rename to tesseract.js/index.d.ts
index 0b9457742f..ad0daa2359 100644
--- a/tesseract.js/tesseract.js.d.ts
+++ b/tesseract.js/index.d.ts
@@ -3,9 +3,9 @@
// Definitions by: York Yao
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
+///
-declare module Tesseract {
+declare namespace Tesseract {
type ImageLike = string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement
| CanvasRenderingContext2D | File | Blob | ImageData | Buffer;
interface Progress {
@@ -141,9 +141,6 @@ declare module Tesseract {
}
}
-declare module "tesseract.js" {
- var Tesseract: Tesseract.TesseractStatic
- export = Tesseract;
-}
-
declare var Tesseract: Tesseract.TesseractStatic;
+export = Tesseract;
+export as namespace Tesseract;
diff --git a/tesseract.js/tesseract.js-tests.ts b/tesseract.js/tesseract.js-tests.ts
index df55b75b3b..7f78a48f96 100644
--- a/tesseract.js/tesseract.js-tests.ts
+++ b/tesseract.js/tesseract.js-tests.ts
@@ -1,36 +1,4 @@
-///
-
-import * as TesseractLib from 'tesseract.js';
-
-TesseractLib.recognize("./demo.png", {
- lang: 'chi_sim',
-}).progress(function (p) {
- console.log('progress', p);
-}).then(function (result) {
- console.log(result.text)
-});
-
-TesseractLib.detect("./demo.png").then(function (result) {
- console.log(result)
-});
-
-TesseractLib.recognize("./demo.png")
- .progress(message => console.log(message))
- .catch(err => console.error(err))
- .then(result => console.log(result))
- .finally(resultOrError => console.log(resultOrError));
-
-var job1 = TesseractLib.recognize("./demo.png");
-job1.progress(message => console.log(message));
-job1.catch(err => console.error(err));
-job1.then(result => console.log(result));
-job1.finally(resultOrError => console.log(resultOrError));
-
-TesseractLib.create({
- workerPath: '/path/to/worker.js',
- langPath: 'https://cdn.rawgit.com/naptha/tessdata/gh-pages/3.02/',
- corePath: 'https://cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js',
-});
+import * as Tesseract from 'tesseract.js';
Tesseract.recognize("./demo.png", {
lang: 'chi_sim',
@@ -50,11 +18,11 @@ Tesseract.recognize("./demo.png")
.then(result => console.log(result))
.finally(resultOrError => console.log(resultOrError));
-var job2 = Tesseract.recognize("./demo.png");
-job2.progress(message => console.log(message));
-job2.catch(err => console.error(err));
-job2.then(result => console.log(result));
-job2.finally(resultOrError => console.log(resultOrError));
+var job = Tesseract.recognize("./demo.png");
+job.progress(message => console.log(message));
+job.catch(err => console.error(err));
+job.then(result => console.log(result));
+job.finally(resultOrError => console.log(resultOrError));
Tesseract.create({
workerPath: '/path/to/worker.js',
diff --git a/tesseract.js/tsconfig.json b/tesseract.js/tsconfig.json
new file mode 100644
index 0000000000..ac66d83611
--- /dev/null
+++ b/tesseract.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",
+ "tesseract.js-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/timelinejs3/timelinejs3.d.ts b/timelinejs3/index.d.ts
similarity index 100%
rename from timelinejs3/timelinejs3.d.ts
rename to timelinejs3/index.d.ts
diff --git a/timelinejs3/timelinejs3-tests.ts b/timelinejs3/timelinejs3-tests.ts
index d5f339de28..b20ad5a62a 100644
--- a/timelinejs3/timelinejs3-tests.ts
+++ b/timelinejs3/timelinejs3-tests.ts
@@ -1,5 +1,3 @@
-///
-
let date1: TL.ITimelineDate = {
year: 1999,
month: 3,
diff --git a/timelinejs3/tsconfig.json b/timelinejs3/tsconfig.json
new file mode 100644
index 0000000000..52fb2f54bf
--- /dev/null
+++ b/timelinejs3/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",
+ "timelinejs3-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/uk.co.workingedge.phonegap.plugin.istablet/uk.co.workingedge.phonegap.plugin.istablet.d.ts b/uk.co.workingedge.phonegap.plugin.istablet/index.d.ts
similarity index 100%
rename from uk.co.workingedge.phonegap.plugin.istablet/uk.co.workingedge.phonegap.plugin.istablet.d.ts
rename to uk.co.workingedge.phonegap.plugin.istablet/index.d.ts
diff --git a/uk.co.workingedge.phonegap.plugin.istablet/tsconfig.json b/uk.co.workingedge.phonegap.plugin.istablet/tsconfig.json
new file mode 100644
index 0000000000..898fac1cd2
--- /dev/null
+++ b/uk.co.workingedge.phonegap.plugin.istablet/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",
+ "uk.co.workingedge.phonegap.plugin.istablet-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/uk.co.workingedge.phonegap.plugin.istablet/uk.co.workingedge.phonegap.plugin.istablet-tests.ts b/uk.co.workingedge.phonegap.plugin.istablet/uk.co.workingedge.phonegap.plugin.istablet-tests.ts
index 04de4a177f..aaaa459224 100644
--- a/uk.co.workingedge.phonegap.plugin.istablet/uk.co.workingedge.phonegap.plugin.istablet-tests.ts
+++ b/uk.co.workingedge.phonegap.plugin.istablet/uk.co.workingedge.phonegap.plugin.istablet-tests.ts
@@ -1,3 +1 @@
-///
-
-console.log("isTablet: "+window.isTablet);
+console.log("isTablet: "+window.isTablet);
diff --git a/uk.co.workingedge.phonegap.plugin.launchnavigator/uk.co.workingedge.phonegap.plugin.launchnavigator.d.ts b/uk.co.workingedge.phonegap.plugin.launchnavigator/index.d.ts
similarity index 100%
rename from uk.co.workingedge.phonegap.plugin.launchnavigator/uk.co.workingedge.phonegap.plugin.launchnavigator.d.ts
rename to uk.co.workingedge.phonegap.plugin.launchnavigator/index.d.ts
diff --git a/uk.co.workingedge.phonegap.plugin.launchnavigator/tsconfig.json b/uk.co.workingedge.phonegap.plugin.launchnavigator/tsconfig.json
new file mode 100644
index 0000000000..e2f056296b
--- /dev/null
+++ b/uk.co.workingedge.phonegap.plugin.launchnavigator/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",
+ "uk.co.workingedge.phonegap.plugin.launchnavigator-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/uk.co.workingedge.phonegap.plugin.launchnavigator/uk.co.workingedge.phonegap.plugin.launchnavigator-tests.ts b/uk.co.workingedge.phonegap.plugin.launchnavigator/uk.co.workingedge.phonegap.plugin.launchnavigator-tests.ts
index 5f551ebac4..46d349cf2d 100644
--- a/uk.co.workingedge.phonegap.plugin.launchnavigator/uk.co.workingedge.phonegap.plugin.launchnavigator-tests.ts
+++ b/uk.co.workingedge.phonegap.plugin.launchnavigator/uk.co.workingedge.phonegap.plugin.launchnavigator-tests.ts
@@ -1,6 +1,4 @@
-///
-
-let app = launchnavigator.APP["GOOGLE_MAPS"];
+let app = launchnavigator.APP["GOOGLE_MAPS"];
let platform = launchnavigator.PLATFORM["ANDROID"];
let destination = "Westminster, London, UK";
diff --git a/valid-url/index.d.ts b/valid-url/index.d.ts
new file mode 100644
index 0000000000..c4cc826b7f
--- /dev/null
+++ b/valid-url/index.d.ts
@@ -0,0 +1,43 @@
+// Type definitions for valid-url v1.0.9
+// Project: https://github.com/ogt/valid-url
+// Definitions by: Steve Hipwell
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+/**
+ * Is the value a well-formed uri?
+ * Returns the untainted URI if the test value appears to be well-formed. Note that you may really want one of the more practical methods like is_http_uri or is_https_uri, since the URI standard (RFC 3986) allows a lot of things you probably don't want.
+ * @param {string} value - The potential URI to test.
+ * @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
+ */
+export function isUri(value: any): string;
+
+/**
+* Is the value a well-formed HTTP uri?
+* Specialized version of isUri() that only likes http:// urls. As a result, it can also do a much more thorough job validating. Also, unlike isUri() it is more concerned with only allowing real-world URIs through. Things like relative hostnames are allowed by the standards, but probably aren't wise. Conversely, null paths aren't allowed per RFC 2616 (should be '/' instead), but are allowed by this function.
+*
+* This function only works for fully-qualified URIs. /bob.html won't work. See RFC 3986 for the appropriate method to turn a relative URI into an absolute one given its context.
+*
+* Note that you probably want to either call this in combo with is_https_uri().
+* i.e. if(isHttpUri(uri) || isHttpsUri(uri)) console.log('Good');
+* or use the convenience method isWebUri which is equivalent.
+* @param {string} value - The potential URI to test.
+* @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
+*/
+export function isHttpUri(value: any): string;
+
+
+/**
+* Is the value a well-formed HTTPS uri?
+*See is_http_uri() for details. This version only likes the https URI scheme. Otherwise it's identical to is_http_uri().
+* @param {string} value - The potential URI to test.
+* @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
+*/
+export function isHttpsUri(value: any): string;
+
+/**
+* Is the value a well-formed HTTP or HTTPS uri?
+* This is just a convenience method that combines isHttpUri and isHttpsUri to accept most common real-world URLs.
+* @param {string} value - The potential URI to test.
+* @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
+*/
+export function isWebUri(value: any): string;
diff --git a/valid-url/tsconfig.json b/valid-url/tsconfig.json
new file mode 100644
index 0000000000..4f9515df91
--- /dev/null
+++ b/valid-url/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",
+ "valid-url-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/valid-url/valid-url-tests.ts b/valid-url/valid-url-tests.ts
index b30f17a836..1bb2b2d619 100644
--- a/valid-url/valid-url-tests.ts
+++ b/valid-url/valid-url-tests.ts
@@ -1,5 +1,3 @@
-///
-
import validUrl = require('valid-url');
function testIsUri() {
diff --git a/valid-url/valid-url.d.ts b/valid-url/valid-url.d.ts
deleted file mode 100644
index 494c872e1e..0000000000
--- a/valid-url/valid-url.d.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-// Type definitions for valid-url v1.0.9
-// Project: https://github.com/ogt/valid-url
-// Definitions by: Steve Hipwell
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module 'valid-url' {
-
- /**
- * Is the value a well-formed uri?
- * Returns the untainted URI if the test value appears to be well-formed. Note that you may really want one of the more practical methods like is_http_uri or is_https_uri, since the URI standard (RFC 3986) allows a lot of things you probably don't want.
- * @param {string} value - The potential URI to test.
- * @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
- */
- export function isUri(value: any): string;
-
- /**
- * Is the value a well-formed HTTP uri?
- * Specialized version of isUri() that only likes http:// urls. As a result, it can also do a much more thorough job validating. Also, unlike isUri() it is more concerned with only allowing real-world URIs through. Things like relative hostnames are allowed by the standards, but probably aren't wise. Conversely, null paths aren't allowed per RFC 2616 (should be '/' instead), but are allowed by this function.
- *
- * This function only works for fully-qualified URIs. /bob.html won't work. See RFC 3986 for the appropriate method to turn a relative URI into an absolute one given its context.
- *
- * Note that you probably want to either call this in combo with is_https_uri().
- * i.e. if(isHttpUri(uri) || isHttpsUri(uri)) console.log('Good');
- * or use the convenience method isWebUri which is equivalent.
- * @param {string} value - The potential URI to test.
- * @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
- */
- export function isHttpUri(value: any): string;
-
-
- /**
- * Is the value a well-formed HTTPS uri?
- *See is_http_uri() for details. This version only likes the https URI scheme. Otherwise it's identical to is_http_uri().
- * @param {string} value - The potential URI to test.
- * @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
- */
- export function isHttpsUri(value: any): string;
-
- /**
- * Is the value a well-formed HTTP or HTTPS uri?
- * This is just a convenience method that combines isHttpUri and isHttpsUri to accept most common real-world URLs.
- * @param {string} value - The potential URI to test.
- * @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
- */
- export function isWebUri(value: any): string;
-
-}
diff --git a/vectorious/vectorious.d.ts b/vectorious/index.d.ts
similarity index 100%
rename from vectorious/vectorious.d.ts
rename to vectorious/index.d.ts
diff --git a/vectorious/tsconfig.json b/vectorious/tsconfig.json
new file mode 100644
index 0000000000..534c4da491
--- /dev/null
+++ b/vectorious/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",
+ "vectorious-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/vectorious/vectorious-tests.ts b/vectorious/vectorious-tests.ts
index 38c264bc37..1ab8940d93 100644
--- a/vectorious/vectorious-tests.ts
+++ b/vectorious/vectorious-tests.ts
@@ -1,6 +1,4 @@
-///
-
-import { Matrix, Vector } from './vectorious';
+import { Matrix, Vector } from 'vectorious';
let vector: Vector;
let num: number;
@@ -9,7 +7,7 @@ let str: string;
let numberArray: number[];
function testMatrix () {
-
+
const a = new Matrix([[1, 2, 3], [1, 2, 3], [1, 2, 3]]);
const b = new Matrix([[1, 2, 3], [1, 2, 3], [1, 2, 3]]);
@@ -59,7 +57,7 @@ function testMatrix () {
}
function testVector () {
-
+
const a = new Vector([1, 2, 3]);
const b = new Vector([4, 5, 6]);
diff --git a/xmlrpc/xmlrpc.d.ts b/xmlrpc/index.d.ts
similarity index 98%
rename from xmlrpc/xmlrpc.d.ts
rename to xmlrpc/index.d.ts
index 3e167de970..b962be4324 100644
--- a/xmlrpc/xmlrpc.d.ts
+++ b/xmlrpc/index.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Andrew Short
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
+///
declare module 'xmlrpc' {
import { EventEmitter } from 'events';
diff --git a/xmlrpc/tsconfig.json b/xmlrpc/tsconfig.json
new file mode 100644
index 0000000000..873f195a8a
--- /dev/null
+++ b/xmlrpc/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",
+ "xmlrpc-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/xmlrpc/xmlrpc-tests.ts b/xmlrpc/xmlrpc-tests.ts
index a31d6a9e5d..a7e8dcffbe 100644
--- a/xmlrpc/xmlrpc-tests.ts
+++ b/xmlrpc/xmlrpc-tests.ts
@@ -1,5 +1,3 @@
-///
-
import * as xmlrpc from 'xmlrpc';
const serverOpts = {
diff --git a/xtend/index.d.ts b/xtend/index.d.ts
new file mode 100644
index 0000000000..01411defdd
--- /dev/null
+++ b/xtend/index.d.ts
@@ -0,0 +1,15 @@
+// Type definitions for xtend 4.0.1
+// Project: https://github.com/Raynos/xtend
+// Definitions by: rhysd
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+interface Xtend {
+ (target: T, source: U): T & U;
+ (target: T, source1: U, source2: V): T & U & V;
+ (target: T, source1: U, source2: V, source3: W): T & U & V & W;
+ (target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q;
+ (target: T, source1: U, source2: V, source3: W, source4: Q, source5: R): T & U & V & W & Q & R;
+ (target: any, ...sources: any[]): any;
+}
+declare const xtend: Xtend;
+export = xtend;
diff --git a/xtend/tsconfig.json b/xtend/tsconfig.json
new file mode 100644
index 0000000000..61b78981ae
--- /dev/null
+++ b/xtend/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",
+ "xtend-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/xtend/xtend-tests.ts b/xtend/xtend-tests.ts
index e1ab5b8537..12ad82a1b0 100644
--- a/xtend/xtend-tests.ts
+++ b/xtend/xtend-tests.ts
@@ -1,4 +1,3 @@
-///
import * as xtend from "xtend";
interface Target {
diff --git a/xtend/xtend.d.ts b/xtend/xtend.d.ts
deleted file mode 100644
index 616cf81cbd..0000000000
--- a/xtend/xtend.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-// Type definitions for xtend 4.0.1
-// Project: https://github.com/Raynos/xtend
-// Definitions by: rhysd
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module "xtend" {
- interface Xtend {
- (target: T, source: U): T & U;
- (target: T, source1: U, source2: V): T & U & V;
- (target: T, source1: U, source2: V, source3: W): T & U & V & W;
- (target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q;
- (target: T, source1: U, source2: V, source3: W, source4: Q, source5: R): T & U & V & W & Q & R;
- (target: any, ...sources: any[]): any;
- }
- const xtend: Xtend;
- export = xtend;
-}
diff --git a/xterm/xterm.d.ts b/xterm/index.d.ts
similarity index 95%
rename from xterm/xterm.d.ts
rename to xterm/index.d.ts
index 33558bd50d..603e8335c1 100644
--- a/xterm/xterm.d.ts
+++ b/xterm/index.d.ts
@@ -57,7 +57,7 @@ interface XtermConstructor {
/**
* A terminal options.
*/
-declare module Xterm {
+declare namespace Xterm {
interface IOptions {
colors?: string[];
@@ -85,8 +85,5 @@ declare module Xterm {
declare var Xterm: XtermConstructor;
-
-
-declare module 'xterm' {
- export = Xterm;
-}
+export = Xterm;
+export as namespace Xterm;
diff --git a/xterm/tsconfig.json b/xterm/tsconfig.json
new file mode 100644
index 0000000000..6174d757b6
--- /dev/null
+++ b/xterm/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": false,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "xterm-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/xterm/xterm-tests.ts b/xterm/xterm-tests.ts
index 0119ae135e..238cbcc8be 100644
--- a/xterm/xterm-tests.ts
+++ b/xterm/xterm-tests.ts
@@ -1,5 +1,3 @@
-///
-
import * as Terminal from 'xterm';
declare var fetch: any;