2.0.3 • Published 6 months ago

@types/parse-author v2.0.3

Weekly downloads
2,645
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/parse-author

Summary

This package contains type definitions for parse-author (https://github.com/jonschlinkert/parse-author).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-author.

index.d.ts

// Type definitions for parse-author 2.0
// Project: https://github.com/jonschlinkert/parse-author
// Definitions by: Remco Haszing <https://github.com/remcohaszing>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * Parse a string into an object with `name`, `email` and `url` properties following npm conventions.
 *
 * Useful for the `authors` property in package.json or for parsing an AUTHORS file into an array of authors objects.
 */
declare function parse(author: string): parse.Author;

export = parse;

declare namespace parse {
    interface Author {
        name?: string | undefined;
        email?: string | undefined;
        url?: string | undefined;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:19 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Remco Haszing.