Merge pull request #11388 from geoffreak/disposable-email-domains-typing

Adding typing for disposable-email-domains [Types 2.0]
This commit is contained in:
Andy
2016-09-22 06:47:06 -07:00
committed by GitHub
3 changed files with 33 additions and 0 deletions
@@ -0,0 +1,7 @@
import * as disposable from 'disposable-email-domains';
let length: number = disposable.length;
for (let domain of disposable) {
console.log(domain);
}
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for disposable-email-domains v1.0
// Project: https://github.com/ivolo/disposable-email-domains
// Definitions by: Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare const domains: string[];
export = domains;
+19
View File
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"disposable-email-domains-tests.ts"
]
}