react-cosmos
Version:
Sandbox for developing and testing UI components in isolation
6 lines (5 loc) • 329 B
TypeScript
export declare function importModule<T>(filePath: string): Promise<T>;
export declare function importJson<T>(filePath: string): Promise<T>;
export declare function moduleExists(moduleId: string): boolean;
export declare function fileExists(filePath: string): boolean;
export declare function dirExists(dirPath: string): boolean;