nx
Version:
8 lines (7 loc) • 407 B
TypeScript
import { type JsonWriteOptions } from './fileutils';
/**
* Writes a JSON file, formatting it with whichever formatter the workspace is
* configured for, and falling back to standard JSON serialization when there
* is none or it cannot format the file.
*/
export declare function writeFormattedJsonFile<T extends object = object>(filePath: string, content: T, options?: JsonWriteOptions): Promise<void>;