Repository URL to install this package:
|
Version:
1.1.6 ▾
|
/**
* @todo why are we mixing the strings and numbers?
*/
export interface SeparatedDate {
year: string;
month: string | number;
date: string;
}
export declare type DateFormat = 'yyyy' | 'mmm' | 'dd' | 'yy' | string;
/**
* @note this was unsafe previously, now it is safe with typescript
*/
declare function getActualDate(actualDate: string, dateFormat: DateFormat): string;
export { getActualDate };
export default getActualDate;