typescript-scaffolder
Version:
 
22 lines • 1.28 kB
TypeScript
import { EndpointClientConfigFile } from 'models/api-definitions';
import { WebhookConfigFile } from 'models/webhook-definitions';
/**
* Ensures the directory exists; creates it recursively if it doesn't.
* @param dirPath - Absolute or relative path to the directory
*/
export declare function ensureDir(dirPath: string): void;
/**
* Recursively walks a directory tree and applies a callback to each file that matches the extension.
* @param rootDir - The current directory being walked
* @param callback - Function to call with the full file path and relative path
* @param baseDir - The base directory used to calculate relative paths (defaults to rootDir)
* @param ext - File extension to match
*/
export declare function walkDirectory(rootDir: string, callback: (filePath: string, relativePath: string) => void, ext: string, baseDir?: string): void;
export declare function readEndpointClientConfigFile(configPath: string): EndpointClientConfigFile | null;
export declare function readWebhookConfigFile(configPath: string): WebhookConfigFile | null;
export declare function extractInterfaces(configDir: string, interfacesRootDir: string): {
configFiles: string[];
interfaceNameToDirs: Map<string, Set<string>>;
};
//# sourceMappingURL=file-system.d.ts.map