UNPKG

@progress/telerik-common-report-viewer

Version:

Common code for Progress® Telerik® Report Viewer

24 lines (23 loc) 1.25 kB
import { RequestError } from '../Models/RequestError'; declare type ReportSource = { report: any; parameters: any; } | null; declare type ReportSources = { firstReportSource: ReportSource; secondReportSource: ReportSource; }; export declare function debounce(fn: Function, ms?: number): (this: any, ...args: any[]) => void; export declare function throttle(fn: Function, ms: number): (that: any, ...args: any[]) => void; export declare function isExceptionOfType(error: RequestError, errorType: string): boolean; export declare function isInvalidClientException(error: RequestError): boolean; export declare function isInvalidParameterException(error: RequestError): boolean; export declare function isInternalServerError(error: string | undefined): boolean; export declare function stringFormat(str: string, ...args: any[]): string; export declare function reportSourcesAreEqual(sources: ReportSources): boolean; export declare function each(obj: any, callback: any): any; export declare function isArray(obj: any): boolean; export declare function tryParseInt(value: any): number; export declare function tryParseFloat(value: any): number; export declare function parseToLocalDate(date: any): Date; export {};