@armanatz/expo-hms-location
Version:
Expo config plugin to configure @hmscore/react-native-hms-location on prebuild
26 lines (25 loc) • 856 B
TypeScript
export type InsertOrReplaceResults = {
contents: string;
didClear: boolean;
didInsertOrReplace: boolean;
};
/**
* Insert or replace content inside of a code block located in a file and add a generated header.
*
* @param mode Choose between `insert` or `replace`
* @param src Contents of the original file
* @param newSrc New content to insert or replace
* @param anchor If `mode` is `insert`, the line to insert the new content after.
* If `mode` is `replace`, the line to replace the content with.
* @param tag Used to update and remove merges
* @param comment Comment style `//` or `#`
*/
export declare function insertOrReplaceContentInBlock(params: {
mode: 'replace' | 'insert';
src: string;
blockName: string;
newSrc: string;
anchor: string;
tag: string;
comment: string;
}): InsertOrReplaceResults;