diff options
Diffstat (limited to 'node_modules/jest-resolve-dependencies/build/index.d.ts')
-rw-r--r-- | node_modules/jest-resolve-dependencies/build/index.d.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/node_modules/jest-resolve-dependencies/build/index.d.ts b/node_modules/jest-resolve-dependencies/build/index.d.ts new file mode 100644 index 0000000..9e55786 --- /dev/null +++ b/node_modules/jest-resolve-dependencies/build/index.d.ts @@ -0,0 +1,27 @@ +/** + * 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 type { Config } from '@jest/types'; +import type { FS as HasteFS } from 'jest-haste-map'; +import type { ResolveModuleConfig, default as Resolver } from 'jest-resolve'; +import { SnapshotResolver } from 'jest-snapshot'; +export declare 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. + */ +export declare class DependencyResolver { + private _hasteFS; + private _resolver; + private _snapshotResolver; + constructor(resolver: Resolver, hasteFS: HasteFS, snapshotResolver: SnapshotResolver); + resolve(file: Config.Path, options?: ResolveModuleConfig): Array<Config.Path>; + resolveInverseModuleMap(paths: Set<Config.Path>, filter: (file: Config.Path) => boolean, options?: ResolveModuleConfig): Array<ResolvedModule>; + resolveInverse(paths: Set<Config.Path>, filter: (file: Config.Path) => boolean, options?: ResolveModuleConfig): Array<Config.Path>; +} |