Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
19 lines
911 B
Plaintext
19 lines
911 B
Plaintext
/**
|
|
* Synchronously walks up parent directories until a condition is met and/or one of the file names within the fileNames array is found.
|
|
*/
|
|
export declare function findUpSync({ condition, dir, fileNames, }: {
|
|
condition?: (dir: string) => boolean | Promise<boolean | string> | string;
|
|
dir: string;
|
|
fileNames?: string[];
|
|
}): null | string;
|
|
/**
|
|
* Asynchronously walks up parent directories until a condition is met and/or one of the file names within the fileNames array is found.
|
|
*/
|
|
export declare function findUp({ condition, dir, fileNames, }: {
|
|
condition?: (dir: string) => boolean | Promise<boolean | string> | string;
|
|
dir: string;
|
|
fileNames?: string[];
|
|
}): Promise<null | string>;
|
|
export declare function pathExistsAndIsAccessibleSync(path: string): boolean;
|
|
export declare function pathExistsAndIsAccessible(path: string): Promise<boolean>;
|
|
//# sourceMappingURL=findUp.d.ts.map |