@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
22 lines (21 loc) • 1.17 kB
TypeScript
import { IZSentAnalytics } from './interfaces';
import { ILoadPerformance, IMinPerformance } from '../../Performance/IPerformance';
export declare function getMinPerformanceString(performanceObj: ILoadPerformance, capMS?: number, capValue?: any): string;
/**
*
* @param performanceObj: ILoadPerformance
* @capMS - max Milliseconds to save.... else return 'error' or null for that value.
* @capValue - if ms value exceeds capMS, return this value in place of value
* @returns
*/
export declare function getMinPerformance(performanceObj: ILoadPerformance, capMS?: number, capValue?: any): IMinPerformance;
/**
* Same as 2 but also adds the language to the object
* @param analyticsWeb
* @param analyticsList
* @param saveObject
* @param muteConsole
*/
export declare function saveAnalytics3(analyticsWeb: string, analyticsList: string, saveObject: IZSentAnalytics, muteConsole: boolean, language?: string): void;
export declare function saveAnalytics2(analyticsWeb: string, analyticsList: string, saveObject: IZSentAnalytics, muteConsole: boolean): Promise<void>;
export declare function getAspectRatio(width: number, height: number): string;