10 lines
459 B
TypeScript
10 lines
459 B
TypeScript
/**
|
|
* Creates file with given content with possible parent directories creation.
|
|
*/
|
|
export declare function createDirAndWriteFile(filePath: string, content: string): Promise<void>;
|
|
/**
|
|
* Reads given file as UTF-8 with fallback to given content when file is not found.
|
|
*/
|
|
export declare function readFileWithFallback(filePath: string, fallbackContent?: string): Promise<string>;
|
|
export declare function removeFileIfExists(filePath: string): Promise<void>;
|