@spot-flow/checkout-inline-js
Version:
This project is an inline library that enables users to make payments seamlessly. It integrates smoothly into your application, providing a streamlined checkout experience.
10 lines (9 loc) • 541 B
TypeScript
/**
* Returns the difference between two dates in readable text.
* @param {Date|string|number} startDate - start date.
* @param {Date|string|number} endDate - end date.
* @returns {string} The difference between startDate and endDate in readable text
*/
export declare const textDiffInDates: (startDate: Date | string | number, endDate: Date | string | number) => string;
export declare function formatTimeString(seconds: number): string;
export declare function getTimeformatWithMomentAppend(time: number, isMoment?: boolean): string;