UNPKG

@gergelyszerovay/eslint-plugin-path-boundary-imports

Version:
22 lines 852 B
/** * Helps to detect if a path exists or not * @param map - The object to check the path in * @param path - The path to check * @returns True if the path exists, false otherwise */ export declare function isPathExists(map: Record<string, any>, path: string): boolean; /** * Loads and parses JSON files * @param dir - The directory where the file is located * @param filename - The name of the file to load * @returns The parsed JSON file */ export declare function loadConfigFile(dir: string, filename: string): any; /** * Helps to check if a file exists * @param dir - The directory where the file might be located * @param filename - The name of the file to check * @returns True if the file exists, false otherwise */ export declare function isFileExists(dir: string, filename: string): boolean; //# sourceMappingURL=helpers.d.ts.map