UNPKG

desmy-react

Version:

Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.

47 lines (46 loc) 1.79 kB
declare class DesmyCommons { getFileSize(file: File): string; getExtension(filename: string): string; getFileName(filename: string): string; isValidHttpUrl(s: string): boolean; makeUniqueid(length?: number): string; nameToText(value: string): string; getRandomColor(): string; generateKey: () => number; concat(a: string, b: string): string; isObject(data: any): boolean; isEmptyOrNull(data: any, isForce?: boolean): boolean; toBoolean(data: any): boolean; toStringDefault(data: any, defaultValue?: string): string; toString(data: any): string; isEmpty(text: string | null | undefined): boolean; validatePasswords(passwordOne: string, passwordTwo: string): boolean; validatePassword(passwordOne: string): { hasUppercase: boolean; hasLowercase: boolean; hasNumber: boolean; hasSpecialCharacter: boolean; has8Characters: boolean; allValidationsPassed: boolean; }; isNotEmpty(value: string): boolean; columnHead(value: string): string; convertUnderscoreToSpaceString(str: string): string; isDarkTheme(): boolean; sync_theme(callback?: (isDark: boolean) => void): Promise<void>; imageSize(image: Blob): Promise<{ width: number; height: number; }>; capitalizeEachWord(data: string): string; formatDateString(inputDate: string): string; formatDate(dateString: string): string; validateEmail(email: string): boolean; convertNumber(number: number): string; daysLeft(data: string): number; formatDateToCustomFormat(date: Date): string; getTimeAgoAndCustomDate(timestamp: string | number | Date): string; roundTo2dp(data: string): string; } declare const _default: DesmyCommons; export default _default;