UNPKG

863 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
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 */
7import type { Config } from '@jest/types';
8export declare type Options = {
9 lastCommit?: boolean;
10 withAncestor?: boolean;
11 changedSince?: string;
12 includePaths?: Array<Config.Path>;
13};
14declare type Paths = Set<Config.Path>;
15export declare type Repos = {
16 git: Paths;
17 hg: Paths;
18};
19export declare type ChangedFiles = {
20 repos: Repos;
21 changedFiles: Paths;
22};
23export declare type ChangedFilesPromise = Promise<ChangedFiles>;
24export declare type SCMAdapter = {
25 findChangedFiles: (cwd: Config.Path, options: Options) => Promise<Array<Config.Path>>;
26 getRoot: (cwd: Config.Path) => Promise<Config.Path | null>;
27};
28export {};