This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

10 lines
459 B
TypeScript
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
/**
* 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>;