@augment-vir/node
Version:
A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.
21 lines (20 loc) • 704 B
TypeScript
import { type PartialWithUndefined } from '@augment-vir/common';
/**
* Checks to see if a potential child path is inside of a potential parent path.
*
* @category Path : Node
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function doesPathContain({ potentialParentPath, potentialChildPath, options, }: Readonly<{
potentialParentPath: string;
potentialChildPath: string;
options?: PartialWithUndefined<{
/**
* Set this to `true` to return `true` if the paths are exactly equal.
*
* @default false
*/
allowSelf: boolean;
}>;
}>): boolean;