templates-mo
Version:
Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting
17 lines (16 loc) • 710 B
TypeScript
import { CosmiconfigResult, PublicExplorerSync } from 'cosmiconfig';
/**
* Check to see if the `path` is a valid directory
*/
export declare function isDir(filePath: string): boolean;
/**
* Check to see if the `path` is a valid directory
*/
export declare function isDirAsync(filePath: string): Promise<boolean>;
/**
* Check to see if the `path` is a valid file
*/
export declare function isFileAsync(filePath: string): Promise<boolean>;
export declare function json(jsonFile: string): any;
export declare function findUp(folder: string, cwd?: string): any;
export declare function cosmiconfigAllExampleSync(searchPath: string, explorer: PublicExplorerSync, searchPlaces: string[]): CosmiconfigResult[];