| | |
| | | /** @typedef {import("./DefaultStatsFactoryPlugin").StatsProfile} StatsProfile */ |
| | | |
| | | /** |
| | | * Defines the printed element type used by this module. |
| | | * @typedef {object} PrintedElement |
| | | * @property {string} element |
| | | * @property {string | undefined} content |
| | | */ |
| | | |
| | | /** |
| | | * Defines the known stats printer context type used by this module. |
| | | * @typedef {object} KnownStatsPrinterContext |
| | | * @property {string=} type |
| | | * @property {StatsCompilation=} compilation |
| | |
| | | /** @typedef {(value: string | number) => string} ColorFunction */ |
| | | |
| | | /** |
| | | * Defines the known stats printer color functions type used by this module. |
| | | * @typedef {object} KnownStatsPrinterColorFunctions |
| | | * @property {ColorFunction=} bold |
| | | * @property {ColorFunction=} yellow |
| | |
| | | */ |
| | | |
| | | /** |
| | | * Defines the known stats printer formatters type used by this module. |
| | | * @typedef {object} KnownStatsPrinterFormatters |
| | | * @property {(file: string, oversize?: boolean) => string=} formatFilename |
| | | * @property {(id: string | number) => string=} formatModuleId |
| | |
| | | /** @typedef {EXPECTED_ANY} PrintObject */ |
| | | |
| | | /** |
| | | * Represents the stats printer runtime component. |
| | | * @typedef {object} StatsPrintHooks |
| | | * @property {HookMap<SyncBailHook<[string[], StatsPrinterContext], void>>} sortElements |
| | | * @property {HookMap<SyncBailHook<[PrintedElement[], StatsPrinterContext], string | undefined | void>>} printElements |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns printed result. |
| | | * @param {string} type The type |
| | | * @param {PrintObject} object Object to print |
| | | * @param {StatsPrinterContext=} baseContext The base context |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns printed result. |
| | | * @private |
| | | * @param {string} type type |
| | | * @param {PrintObject} object object |