install-nix-action/node_modules/jest-resolve-dependencies/build/index.d.ts
Domen Kožar 70742d22d9
v6
2019-11-19 17:50:30 +01:00

31 lines
No EOL
1.3 KiB
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Config } from '@jest/types';
import { FS as HasteFS } from 'jest-haste-map';
import Resolver from 'jest-resolve';
import { SnapshotResolver } from 'jest-snapshot';
declare namespace DependencyResolver {
type ResolvedModule = {
file: Config.Path;
dependencies: Array<Config.Path>;
};
}
/**
* DependencyResolver is used to resolve the direct dependencies of a module or
* to retrieve a list of all transitive inverse dependencies.
*/
declare class DependencyResolver {
private _hasteFS;
private _resolver;
private _snapshotResolver;
constructor(resolver: Resolver, hasteFS: HasteFS, snapshotResolver: SnapshotResolver);
resolve(file: Config.Path, options?: Resolver.ResolveModuleConfig): Array<Config.Path>;
resolveInverseModuleMap(paths: Set<Config.Path>, filter: (file: Config.Path) => boolean, options?: Resolver.ResolveModuleConfig): Array<DependencyResolver.ResolvedModule>;
resolveInverse(paths: Set<Config.Path>, filter: (file: Config.Path) => boolean, options?: Resolver.ResolveModuleConfig): Array<Config.Path>;
}
export = DependencyResolver;
//# sourceMappingURL=index.d.ts.map