Skip to content

Commit

Permalink
address review issue: document stopAt option in ts doc
Browse files Browse the repository at this point in the history
  • Loading branch information
vast committed Sep 20, 2021
1 parent d2a1b0d commit c2134ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ export const findUpStop: unique symbol;

export type Match = string | typeof findUpStop | undefined;

export type Options = LocatePathOptions & {stopAt?: string};
export interface Options extends LocatePathOptions {
/**
The path to the directory to stop the search before reaching root if there were no matches before the `stopAt` directory.
@default path.parse(cwd).root
*/
readonly stopAt?: string;
}

/**
Find a file or directory by walking up parent directories.
Expand Down

0 comments on commit c2134ed

Please sign in to comment.