@jonstuebe/allot-utils
Version:
Util functions for Allot
19 lines (18 loc) • 879 B
TypeScript
import { Bill, Bills, PayPeriod, PayPeriods, Paycheck, Paychecks } from "./types";
export declare function validatePayPeriod(payPeriod: PayPeriod, bills: Bills, paychecks: Paychecks): {
bills: Bill[];
paychecks: Paycheck[];
start: Date;
end: Date;
};
export declare function validatePayPeriods(payPeriods: PayPeriods, bills: Bills, paychecks: Paychecks): {
bills: Bill[];
paychecks: Paycheck[];
start: Date;
end: Date;
}[];
export declare function totalIncomeInPayPeriod(payPeriod: PayPeriod): number;
export declare function totalBillsInPayPeriod(payPeriod: PayPeriod): number;
export declare function getPayPeriods(paydays: Date[]): PayPeriod[];
export declare function formatPayPeriodDate({ start, end }: PayPeriod, formatType?: string): string;
export declare function isPaycheckInPayPeriod(paycheck: Paycheck, payPeriod: PayPeriod): Boolean;