Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/utils / dist / module / getActualDate.d.ts
Size: Mime:
/**
 * @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;