|
1 | | -import { TransformedSource, Transformer } from '@jest/transform/build/types' |
| 1 | +import { TransformedSource, Transformer } from '@jest/transform' |
2 | 2 | import * as _babel from 'babel__core' |
3 | | -import { CompilerOptions, SourceFile, TransformerFactory } from 'typescript' |
4 | | -// tslint:disable-next-line:no-duplicate-imports |
5 | 3 | import * as _ts from 'typescript' |
6 | 4 |
|
7 | 5 | import { ConfigSet } from './config/config-set' |
@@ -37,7 +35,7 @@ export interface TsJestGlobalOptions { |
37 | 35 | * - `path/to/tsconfig.json`: path to a specific tsconfig file (<rootDir> can be used) |
38 | 36 | * - `{...}`: an object with inline compiler options |
39 | 37 | */ |
40 | | - tsConfig?: boolean | string | CompilerOptions |
| 38 | + tsConfig?: boolean | string | _ts.CompilerOptions |
41 | 39 |
|
42 | 40 | /** |
43 | 41 | * packageJson. It can be: |
@@ -122,7 +120,7 @@ interface TsJestConfig$tsConfig$file { |
122 | 120 | } |
123 | 121 | interface TsJestConfig$tsConfig$inline { |
124 | 122 | kind: 'inline' |
125 | | - value: CompilerOptions |
| 123 | + value: _ts.CompilerOptions |
126 | 124 | } |
127 | 125 | type TsJestConfig$tsConfig = TsJestConfig$tsConfig$file | TsJestConfig$tsConfig$inline | undefined |
128 | 126 | interface TsJestConfig$diagnostics { |
@@ -227,5 +225,5 @@ export interface CompilerInstance { |
227 | 225 | export interface AstTransformerDesc { |
228 | 226 | name: string |
229 | 227 | version: number |
230 | | - factory(cs: ConfigSet): TransformerFactory<SourceFile> |
| 228 | + factory(cs: ConfigSet): _ts.TransformerFactory<_ts.SourceFile> |
231 | 229 | } |
0 commit comments