resolveIntersection
resolveIntersection(
a,b,opts?):Promise<string[]>
The concrete on-disk files that fall in BOTH a and b.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
a | Patterns | The first scope (Patterns). |
b | Patterns | The second scope (Patterns). |
opts? | FsOptions | FsOptions: matching semantics plus on-disk controls. |
Returns
Section titled “Returns”Promise<string[]>
The files matching both a and b, sorted; cwd-relative unless opts.absolute.
Example
Section titled “Example”const both = await resolveIntersection(["src/**"], ["src/api/**"], { cwd: repoRoot });// → ["src/api/routes/list.ts", "src/api/user.ts"] (only files under both scopes)