@types/addressparser
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -39,3 +39,3 @@ // Type definitions for addressparser 1.0 | ||
*/ | ||
group?: EmailAddress[]; | ||
group?: EmailAddress[] | undefined; | ||
} | ||
@@ -42,0 +42,0 @@ } |
{ | ||
"name": "@types/addressparser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for addressparser", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/addressparser", | ||
"license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "218099e3e4e5da58aa9ff58468ff6c0d068750c10ad32f93d716d315ad756841", | ||
"typeScriptVersion": "3.1" | ||
"typesPublisherContentHash": "0a81baeb604f539e2e6edba26683e62f59743df08b3ab32e57dca46ff4b6bfd6", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,52 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/addressparser. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/addressparser/index.d.ts) | ||
````ts | ||
// Type definitions for addressparser 1.0 | ||
// Project: https://github.com/nodemailer/addressparser | ||
// Definitions by: Anton Panov <https://github.com/risedphantom> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/// <reference types="node" /> | ||
/** | ||
* Parses structured e-mail addresses from an address field | ||
* | ||
* Example: | ||
* | ||
* 'Name <address@domain>' | ||
* | ||
* will be converted to | ||
* | ||
* [{name: 'Name', address: 'address@domain'}] | ||
* | ||
* @param str Address field | ||
*/ | ||
declare function addressparser(str: string): addressparser.EmailAddress[]; | ||
declare namespace addressparser { | ||
/** | ||
* Address details. | ||
*/ | ||
interface EmailAddress { | ||
/** | ||
* The email address. | ||
*/ | ||
address: string; | ||
/** | ||
* The name part of the email/group. | ||
*/ | ||
name: string; | ||
/** | ||
* An array of grouped addresses. | ||
*/ | ||
group?: EmailAddress[] | undefined; | ||
} | ||
} | ||
export = addressparser; | ||
```` | ||
### Additional Details | ||
* Last updated: Fri, 28 Aug 2020 00:17:21 GMT | ||
* Last updated: Wed, 07 Jul 2021 21:44:02 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +61,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4651
0
64