UNPKG

2.33 kBTypeScriptView Raw
1import * as _babel from 'babel__core';
2import * as _ts from 'typescript';
3export declare type TTypeScript = typeof _ts;
4export declare type BabelConfig = _babel.TransformOptions;
5export interface TsJestGlobalOptions {
6 tsConfig?: boolean | string | _ts.CompilerOptions;
7 tsconfig?: boolean | string | _ts.CompilerOptions;
8 packageJson?: boolean | string | Record<string, unknown>;
9 isolatedModules?: boolean;
10 compiler?: string;
11 astTransformers?: string[];
12 diagnostics?: boolean | {
13 pretty?: boolean;
14 ignoreCodes?: number | string | (number | string)[];
15 pathRegex?: RegExp | string;
16 warnOnly?: boolean;
17 };
18 babelConfig?: boolean | string | BabelConfig;
19 stringifyContentPathRegex?: string | RegExp;
20}
21interface TsJestConfig$tsConfig$file {
22 kind: 'file';
23 value: string | undefined;
24}
25interface TsJestConfig$tsConfig$inline {
26 kind: 'inline';
27 value: _ts.CompilerOptions;
28}
29declare type TsJestConfig$tsConfig = TsJestConfig$tsConfig$file | TsJestConfig$tsConfig$inline | undefined;
30interface TsJestConfig$diagnostics {
31 pretty: boolean;
32 ignoreCodes: number[];
33 pathRegex?: string | undefined;
34 throws: boolean;
35 warnOnly?: boolean;
36}
37interface TsJestConfig$babelConfig$file {
38 kind: 'file';
39 value: string | undefined;
40}
41interface TsJestConfig$babelConfig$inline {
42 kind: 'inline';
43 value: BabelConfig;
44}
45declare type TsJestConfig$babelConfig = TsJestConfig$babelConfig$file | TsJestConfig$babelConfig$inline | undefined;
46interface TsJestConfig$packageJson$file {
47 kind: 'file';
48 value: string | undefined;
49}
50interface TsJestConfig$packageJson$inline {
51 kind: 'inline';
52 value: any;
53}
54declare type TsJestConfig$packageJson = TsJestConfig$packageJson$file | TsJestConfig$packageJson$inline | undefined;
55declare type TsJestConfig$stringifyContentPathRegex = string | undefined;
56export interface TsJestConfig {
57 tsConfig: TsJestConfig$tsConfig;
58 packageJson: TsJestConfig$packageJson;
59 isolatedModules: boolean;
60 compiler: string;
61 diagnostics: TsJestConfig$diagnostics;
62 babelConfig: TsJestConfig$babelConfig;
63 transformers: string[];
64 stringifyContentPathRegex: TsJestConfig$stringifyContentPathRegex;
65}
66export interface TsCompiler {
67 program: _ts.Program | undefined;
68}
69export {};