mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 07:44:06 +02:00
23 lines
546 B
TypeScript
23 lines
546 B
TypeScript
export type NpmPackBudgetResult = {
|
|
filename?: string;
|
|
unpackedSize?: number;
|
|
};
|
|
|
|
export declare const NPM_PACK_UNPACKED_SIZE_BUDGET_BYTES: number;
|
|
|
|
export declare function formatMiB(bytes: number): string;
|
|
|
|
export declare function formatPackUnpackedSizeBudgetError(params: {
|
|
budgetBytes?: number;
|
|
label: string;
|
|
unpackedSize: number;
|
|
}): string;
|
|
|
|
export declare function collectPackUnpackedSizeErrors(
|
|
results: Iterable<NpmPackBudgetResult>,
|
|
options?: {
|
|
budgetBytes?: number;
|
|
missingDataMessage?: string;
|
|
},
|
|
): string[];
|