1.1.8 • Published 6 months ago
@types/humanparser v1.1.8
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.