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.