@salesforce/apex-node
Version:
Salesforce JS library for Apex
19 lines (18 loc) • 593 B
TypeScript
import { AnyJson } from '@salesforce/ts-types';
export declare function ensureDirectoryExists(filePath: string): void;
export declare function ensureFileExists(filePath: string): void;
/**
* Method to save a file on disk.
*
* @param filePath path where to
* @param fileContent file contents
*/
export declare function createFile(filePath: string, fileContent: AnyJson): void;
/**
* Method to save multiple files on disk
* @param fileMap key = filePath, value = file contents
*/
export declare function createFiles(fileMap: {
path: string;
content: string;
}[]): Promise<void>;