1.1.8 • Published 6 months ago

@types/humanparser v1.1.8

Weekly downloads
3,313
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for humanparser 1.1.1
// Project: https://github.com/chovy/humanparser
// Definitions by: Michał Podeszwa <https://github.com/MichalPodeszwa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace humanparser {
    interface NameOutput {
        firstName: string;
        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 HumanparserStatic {
        parseName (name: string, ignoreSuffix?: string[]): NameOutput;
        getFullestName (name: string): FullerNameOutput;
        parseAddress (address: string): AddressOutput;
    }

}

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

Additional Details

  • Last updated: Tue, 10 May 2022 09:01:35 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Michał Podeszwa.

1.1.8

6 months ago

1.1.7

7 months ago

1.1.6

8 months ago

1.1.5

8 months ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

3 years ago

1.1.1

7 years ago

1.1.0

7 years ago