@@ -31,7 +31,7 @@ export interface CreateOptions {
31
31
ignore? : string [];
32
32
ignoreDiagnostics? : Array <number | string >;
33
33
logError? : boolean ;
34
- moduleTypes? : Record < string , ' cjs ' | ' esm ' | ' package ' > ;
34
+ moduleTypes? : ModuleTypes ;
35
35
pretty? : boolean ;
36
36
project? : string ;
37
37
projectSearchDir? : string ;
@@ -43,10 +43,12 @@ export interface CreateOptions {
43
43
scopeDir? : string ;
44
44
skipIgnore? : boolean ;
45
45
skipProject? : boolean ;
46
+ swc? : boolean ;
46
47
// (undocumented)
47
48
transformers? : _ts .CustomTransformers | ((p : _ts .Program ) => _ts .CustomTransformers );
48
49
transpileOnly? : boolean ;
49
50
transpiler? : string | [string , object ];
51
+ tsTrace? : (str : string ) => void ;
50
52
typeCheck? : boolean ;
51
53
}
52
54
@@ -72,12 +74,15 @@ export interface CreateReplOptions {
72
74
// @public (undocumented)
73
75
export interface CreateTranspilerOptions {
74
76
// (undocumented)
75
- service: Pick <Service , ' config' | ' options' >;
77
+ service: Pick <Service , Extract < ' config' | ' options' | ' projectLocalResolveHelper ' , keyof Service > >;
76
78
}
77
79
78
80
// @public
79
81
export type EvalAwarePartialHost = Pick <CreateOptions , ' readFile' | ' fileExists' >;
80
82
83
+ // @public (undocumented)
84
+ export type ModuleTypes = Record <string , ' cjs' | ' esm' | ' package' >;
85
+
81
86
// @public (undocumented)
82
87
export interface NodeLoaderHooksAPI1 {
83
88
// (undocumented)
@@ -118,12 +123,22 @@ export namespace NodeLoaderHooksAPI2 {
118
123
// (undocumented)
119
124
export type LoadHook = (url : string , context : {
120
125
format: NodeLoaderHooksFormat | null | undefined ;
126
+ importAssertions? : NodeImportAssertions ;
121
127
}, defaultLoad : NodeLoaderHooksAPI2 [' load' ]) => Promise <{
122
128
format: NodeLoaderHooksFormat ;
123
129
source: string | Buffer | undefined ;
124
130
}>;
125
131
// (undocumented)
132
+ export interface NodeImportAssertions {
133
+ // (undocumented)
134
+ type? : ' json' ;
135
+ }
136
+ // (undocumented)
137
+ export type NodeImportConditions = unknown ;
138
+ // (undocumented)
126
139
export type ResolveHook = (specifier : string , context : {
140
+ conditions? : NodeImportConditions ;
141
+ importAssertions? : NodeImportAssertions ;
127
142
parentURL: string ;
128
143
}, defaultResolve : ResolveHook ) => Promise <{
129
144
url: string ;
@@ -147,6 +162,7 @@ export const REGISTER_INSTANCE: unique symbol;
147
162
148
163
// @public
149
164
export interface RegisterOptions extends CreateOptions {
165
+ experimentalResolverFeatures? : boolean ;
150
166
preferTsExts? : boolean ;
151
167
}
152
168
@@ -276,7 +292,7 @@ export interface TSCommon {
276
292
}
277
293
278
294
// @public
279
- export interface TsConfigOptions extends Omit <RegisterOptions , ' transformers' | ' readFile' | ' fileExists' | ' skipProject' | ' project' | ' dir' | ' cwd' | ' projectSearchDir' | ' optionBasePaths' > {
295
+ export interface TsConfigOptions extends Omit <RegisterOptions , ' transformers' | ' readFile' | ' fileExists' | ' skipProject' | ' project' | ' dir' | ' cwd' | ' projectSearchDir' | ' optionBasePaths' | ' tsTrace ' > {
280
296
}
281
297
282
298
// @public
0 commit comments