UNPKG

@google-cloud/storage-control

Version:
14 lines (13 loc) 620 B
export declare const filesToUpdate: string[]; export interface Replacement { pattern: RegExp; replacement: string; } export declare const replacements: Replacement[]; /** * Cleans up references to Object in storage protos by replacing the reference with the replacement. * This is functionally equivalent to sed -i -E 's,\bObject\b,StorageObject,g' ${filePaths} * @param {string[]} filePaths - An array of file paths to update. * @param {Replacement[]} replacements - An array of replacement objects. */ export declare function cleanObjectReferences(filePaths: string[], replacements: Replacement[]): void;