UNPKG

780 BTypeScriptView Raw
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7export declare type ChangedFiles = {
8 repos: Repos;
9 changedFiles: Paths;
10};
11
12export declare type ChangedFilesPromise = Promise<ChangedFiles>;
13
14export declare const findRepos: (roots: Array<string>) => Promise<Repos>;
15
16export declare const getChangedFilesForRoots: (
17 roots: Array<string>,
18 options: Options,
19) => ChangedFilesPromise;
20
21declare type Options = {
22 lastCommit?: boolean;
23 withAncestor?: boolean;
24 changedSince?: string;
25 includePaths?: Array<string>;
26};
27
28declare type Paths = Set<string>;
29
30declare type Repos = {
31 git: Paths;
32 hg: Paths;
33 sl: Paths;
34};
35
36export {};