UNPKG

@ckeditor/ckeditor5-dev-utils

Version:
8 lines (7 loc) 332 B
/** * Updates JSON file under a specified path. * * @param filePath Path to a file on disk. * @param updateFunction Function that will be called with a parsed JSON object. It should return the modified JSON object to save. */ export default function updateJSONFile(filePath: string, updateFunction: (json: object) => object): void;