@protocolnebula/ts-openapi-generator
Version:
Build API and models from Swagger/OpenAPI to use in any project type
22 lines • 1.29 kB
TypeScript
/**
* Find a resource for a pluggable element (like templates)
* @param elementPath Element to find (template name, ...)
* @param internalPath Path starting root (src/ parent folder) in case elementPath path not exists
* This will be concated elementPath: `${internalPath}/${elementPath}`
* @example resolvePluggablePath('angular2', 'templates');
* @returns The resolved path to the resource
* @throws Exception if path not exist or not found
*/
export declare function resolvePluggablePath(elementPath: string, internalPath: string): string;
export declare function getAllFoldersFrom(path: any): any;
export declare function makeDir(dest: any): void;
export declare function copyDir(src: string, dest: string, overwrite?: boolean): void;
export declare function downloadFile(url: any, dest: any): Promise<string>;
export declare function getTemplate(templateFile: any): any;
export declare function generateFileSync(file: any, data: any): void;
export declare function fileExtension(filePath: any): string;
export declare function fileIsJSON(filePath: any): boolean;
export declare function fileIsYAML(filePath: any): boolean;
export declare function parseJSON(filePath: any): any;
export declare function parseYAML(filePath: any): any;
//# sourceMappingURL=files.util.d.ts.map