@types/humanparser
TypeScript icon, indicating that this package has built-in type declarations

1.1.8 • Public • Published

Installation

npm install --save @types/humanparser

Summary

This package contains type definitions for humanparser (https://github.com/chovy/humanparser).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/humanparser.

index.d.ts

declare namespace humanparser {
    interface NameOutput {
        firstName?: string | undefined;
        lastName: string;
        fullName: string;
        suffix?: string | undefined;
        middleName?: string | undefined;
        salutation?: string | undefined;
    }

    interface FullerNameOutput {
        fullName: string;
    }

    interface AddressOutput {
        address: string;
        state: string;
        fullAddress: string;
        zip: string;
        city: string;
    }

    interface ParseNameOptions {
        extraCompound?: string[];
        extraSalutations?: string[];
        extraSuffixes?: string[];
        ignoreCompound?: string[];
        ignoreSalutation?: string[];
        ignoreSuffix?: string[];
    }

    interface HumanparserStatic {
        parseName(name: string, options?: string[] | ParseNameOptions): NameOutput;
        getFullestName(name: string): FullerNameOutput;
        parseAddress(address: string): AddressOutput;
    }
}

declare const humanparser: humanparser.HumanparserStatic;
export = humanparser;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Michał Podeszwa.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/humanparser

Weekly Downloads

13,634

Version

1.1.8

License

MIT

Unpacked Size

4.71 kB

Total Files

5

Last publish

Collaborators

  • types