@churchapps/apphelper
Version:
Library of helper functions for React and NextJS ChurchApps
11 lines • 709 B
TypeScript
import { PersonInterface, ContactInfoInterface } from "@churchapps/helpers";
export declare class PersonHelper {
static getPhotoUrl(person: PersonInterface): string;
static getAge(birthdate: Date): string;
static getDisplayName(firstName: string, lastName: string, nickName: string): string;
static compareAddress(address1: ContactInfoInterface, address2: ContactInfoInterface): boolean;
static addressToString(address: ContactInfoInterface): string;
static changeOnlyAddress(contactInfo1: ContactInfoInterface, contactInfo2: ContactInfoInterface): ContactInfoInterface;
static checkAddressAvailabilty(person: PersonInterface): boolean;
}
//# sourceMappingURL=PersonHelper.d.ts.map