UNPKG

lighthouse

Version:

Automated auditing, performance metrics, and best practices for the web.

40 lines 1.15 kB
/** * Generate a filenamePrefix of hostname_YYYY-MM-DD_HH-MM-SS. * @param {{finalDisplayedUrl: string, fetchTime: string}} lhr * @return {string} */ export function getLhrFilenamePrefix(lhr: { finalDisplayedUrl: string; fetchTime: string; }): string; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview * @suppress {reportUnknownTypes} */ /** * Generate a filenamePrefix of name_YYYY-MM-DD_HH-MM-SS * Date/time uses the local timezone, however Node has unreliable ICU * support, so we must construct a YYYY-MM-DD date format manually. :/ * @param {string} name * @param {string|undefined} fetchTime */ export function getFilenamePrefix(name: string, fetchTime: string | undefined): string; /** * Generate a filenamePrefix of name_YYYY-MM-DD_HH-MM-SS. * @param {{name: string, steps: Array<{lhr: {fetchTime: string}}>}} flowResult * @return {string} */ export function getFlowResultFilenamePrefix(flowResult: { name: string; steps: Array<{ lhr: { fetchTime: string; }; }>; }): string; //# sourceMappingURL=file-namer.d.ts.map