@types/extract-domain
Advanced tools
Comparing version
@@ -15,3 +15,3 @@ // Type definitions for extract-domain 2.3 | ||
interface Options { | ||
tld?: boolean; | ||
tld?: boolean | undefined; | ||
} | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "@types/extract-domain", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "TypeScript definitions for extract-domain", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-domain", | ||
"license": "MIT", | ||
@@ -22,4 +23,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6bcfe5472f18a9b695535f0e337999785317c04cd20deff16ed6d7fef2aff879", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "3dea8af5ad691c9a7ad1629904cea6ad724e31cd9d10d029fe244cdedc3d7500", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,29 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-domain. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-domain/index.d.ts) | ||
````ts | ||
// Type definitions for extract-domain 2.3 | ||
// Project: https://github.com/bjarneo/extract-domain | ||
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/** | ||
* Performant domain name extraction. No regex or array magic. | ||
* This package will also remove the sub domain. | ||
*/ | ||
declare function extractDomain(url: string, opts?: extractDomain.Options): string; | ||
declare function extractDomain(urls: string[], options?: extractDomain.Options): string[]; | ||
declare namespace extractDomain { | ||
interface Options { | ||
tld?: boolean | undefined; | ||
} | ||
} | ||
export as namespace extractDomain; | ||
export = extractDomain; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 18 May 2021 16:01:39 GMT | ||
* Last updated: Thu, 08 Jul 2021 12:01:25 GMT | ||
* Dependencies: none | ||
@@ -14,0 +38,0 @@ * Global values: `extractDomain` |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4046
30.35%0
-100%41
141.18%