@google-cloud/storage-control
Version:
Cloud Storage API client for Node.js
16 lines (15 loc) • 714 B
TypeScript
/**
* Fixes the content of an index file by overwriting it with a predefined correct content.
* This function is specifically designed to correct `synthtool`-generated index files
* to ensure the proper export of `v2`, `StorageControlClient`, and `protos`.
*
* @param filePath The path to the index file to fix, relative to the project root.
*/
export declare function fixIndexFile(filePath: string): void;
/**
* Fixes the v2 index file by ensuring the `StorageClient` is exported.
* If the export statement is missing, it appends it to the file.
*
* @param filePath The path to the v2 index file to fix, relative to the current directory.
*/
export declare function fixV2Index(filePath: string): void;