mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #11388 from geoffreak/disposable-email-domains-typing
Adding typing for disposable-email-domains [Types 2.0]
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import * as disposable from 'disposable-email-domains';
|
||||
|
||||
let length: number = disposable.length;
|
||||
|
||||
for (let domain of disposable) {
|
||||
console.log(domain);
|
||||
}
|
||||
Vendored
+7
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user