UNPKG

@sd-angular/core

Version:

Sd Angular Core Lib

23 lines (22 loc) 843 B
export declare class SdUtilityService { #private; constructor(); hashMD5: (key: string) => any; arrayToObject: <T>(items: T[], key: string) => { [key: string]: T; }; changeAliasLowerCase: (alias: string) => string; timeDifference: (previous: any, current?: any) => string; upload: (option?: { extensions?: string[]; maxSizeInMb?: number; validator?: (fileName: string) => string; }) => Promise<File>; download: (filePath: string, fileName?: string) => void; copyToClipboard: (text: string) => void; printHtml: (elementId: string, fileName?: string) => void; allWithPaging: <T = any>(func: (pageSize: number, pageNumber: number) => Promise<{ items: T[]; total: number; }>, defaultPageSize?: number) => Promise<T[]>; }