UNPKG

@halloverden/number-utilities-ts

Version:

Typescript library with utility functions for a bunch of numbers

32 lines (31 loc) 846 B
import { NinEntity } from '../types'; /** * Parses the birthdate from the given nin entity * * @param ninEntity */ export declare function getBirthDateFromNinEntity(ninEntity: NinEntity): Date; /** * Parses the day of the birthdate from the given nin entity * * @param ninEntity */ export declare function getDayFromNinEntity(ninEntity: NinEntity): number; /** * Parses the month of the birthdate from the given nin entity * * @param ninEntity */ export declare function getMonthFromNinEntity(ninEntity: NinEntity): number; /** * Parses the year of the birthdate from the given nin entity * * @param ninEntity */ export declare function getYearFromNinEntity(ninEntity: NinEntity): number; /** * Parses the year of the birthdate from the given nin * * @param nin */ export declare function getYearFromNin(nin: string): number;