@foal/core
Version:
Full-featured Node.js framework, with no complexity
9 lines (8 loc) • 298 B
TypeScript
/**
* Generate a function checking if a string is included in a text file.
*
* @export
* @param {string} path - The file path.
* @returns {(content: string) => Promise<boolean>} The generated function.
*/
export declare function isInFile(path: string): (content: string) => Promise<boolean>;