https://project.mdnd-it.cc/work_packages/94
This commit is contained in:
2025-08-23 04:25:28 +02:00
parent 725516ad6c
commit 19cfa031d0
25823 changed files with 1095587 additions and 2801760 deletions
+30
View File
@@ -0,0 +1,30 @@
//#region src/types.d.ts
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
type Options = {
lastCommit?: boolean;
withAncestor?: boolean;
changedSince?: string;
includePaths?: Array<string>;
};
type Paths = Set<string>;
type Repos = {
git: Paths;
hg: Paths;
sl: Paths;
};
type ChangedFiles = {
repos: Repos;
changedFiles: Paths;
};
type ChangedFilesPromise = Promise<ChangedFiles>;
//#endregion
//#region src/index.d.ts
declare const getChangedFilesForRoots: (roots: Array<string>, options: Options) => ChangedFilesPromise;
declare const findRepos: (roots: Array<string>) => Promise<Repos>;
//#endregion
export { ChangedFiles, ChangedFilesPromise, findRepos, getChangedFilesForRoots };