ancesdir
Version:
Find a specific ancestor/root directory given a starting location and a search parameter
14 lines (13 loc) • 514 B
TypeScript
import { Options } from "./types";
/**
* Normalize the options for the ancesdir function.
*
* This takes the possible call signatures for ancesdir and returns a
* normalized Options object.
*
* @param {string | Partial<Options>} fromOrOptions - The starting path or
* options object.
* @param {string} [marker] - The marker file to search for.
* @returns {Options} The normalized options.
*/
export declare const normalizeOptions: (fromOrOptions?: string | Partial<Options>, marker?: string) => Options;