react-native-legal
Version:
Acknowledge OSS libraries used in your React Native app
15 lines (14 loc) • 682 B
TypeScript
/**
* Used to modify a file at a specified file path
*
* It provides the file content as a utf-8 string inside a callback parameter.
* The modified result should be returned from a callback parameter as a utf-8 string
*/
export declare function modifyFileContent(filepath: string, transformFile: (fileContent: string) => string): void;
/**
* Used to modify a XML file at a specified file path
*
* It provides XML content parsed to a JS object inside a callback parameter
* The modified result should be a JS object returned from a callback parameter
*/
export declare function modifyXMLFileContent(filepath: string, transformXMLFile: (xmlObj: any) => any): Promise<void>;