UNPKG

@dotgov/core

Version:

DGS core.

15 lines (14 loc) 575 B
export declare class Helper { static validValue(val: any): boolean; /** * @param _date * @param showTime Decide if we should show the time as well or not * @param forControl Decide if should return format dd/mm/yyyy * @returns YYYY-MM-DD HH:mm */ static formatDate(_date: any, showTime?: boolean, forControl?: boolean): string; static stringToDate(strDate: string, dayFirst?: boolean): Date; static convertToDate(d: any): any; static camelize(str: string): string; static isValidUrl(uri: string): boolean; }