@@ -31,7 +31,7 @@ export interface CreateOptions {
3131 ignore? : string [];
3232 ignoreDiagnostics? : Array <number | string >;
3333 logError? : boolean ;
34- moduleTypes? : Record < string , ' cjs ' | ' esm ' | ' package ' > ;
34+ moduleTypes? : ModuleTypes ;
3535 pretty? : boolean ;
3636 project? : string ;
3737 projectSearchDir? : string ;
@@ -43,10 +43,12 @@ export interface CreateOptions {
4343 scopeDir? : string ;
4444 skipIgnore? : boolean ;
4545 skipProject? : boolean ;
46+ swc? : boolean ;
4647 // (undocumented)
4748 transformers? : _ts .CustomTransformers | ((p : _ts .Program ) => _ts .CustomTransformers );
4849 transpileOnly? : boolean ;
4950 transpiler? : string | [string , object ];
51+ tsTrace? : (str : string ) => void ;
5052 typeCheck? : boolean ;
5153}
5254
@@ -72,12 +74,15 @@ export interface CreateReplOptions {
7274// @public (undocumented)
7375export interface CreateTranspilerOptions {
7476 // (undocumented)
75- service: Pick <Service , ' config' | ' options' >;
77+ service: Pick <Service , Extract < ' config' | ' options' | ' projectLocalResolveHelper ' , keyof Service > >;
7678}
7779
7880// @public
7981export type EvalAwarePartialHost = Pick <CreateOptions , ' readFile' | ' fileExists' >;
8082
83+ // @public (undocumented)
84+ export type ModuleTypes = Record <string , ' cjs' | ' esm' | ' package' >;
85+
8186// @public (undocumented)
8287export interface NodeLoaderHooksAPI1 {
8388 // (undocumented)
@@ -118,12 +123,22 @@ export namespace NodeLoaderHooksAPI2 {
118123 // (undocumented)
119124 export type LoadHook = (url : string , context : {
120125 format: NodeLoaderHooksFormat | null | undefined ;
126+ importAssertions? : NodeImportAssertions ;
121127 }, defaultLoad : NodeLoaderHooksAPI2 [' load' ]) => Promise <{
122128 format: NodeLoaderHooksFormat ;
123129 source: string | Buffer | undefined ;
124130 }>;
125131 // (undocumented)
132+ export interface NodeImportAssertions {
133+ // (undocumented)
134+ type? : ' json' ;
135+ }
136+ // (undocumented)
137+ export type NodeImportConditions = unknown ;
138+ // (undocumented)
126139 export type ResolveHook = (specifier : string , context : {
140+ conditions? : NodeImportConditions ;
141+ importAssertions? : NodeImportAssertions ;
127142 parentURL: string ;
128143 }, defaultResolve : ResolveHook ) => Promise <{
129144 url: string ;
@@ -147,6 +162,7 @@ export const REGISTER_INSTANCE: unique symbol;
147162
148163// @public
149164export interface RegisterOptions extends CreateOptions {
165+ experimentalResolverFeatures? : boolean ;
150166 preferTsExts? : boolean ;
151167}
152168
@@ -276,7 +292,7 @@ export interface TSCommon {
276292}
277293
278294// @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 ' > {
280296}
281297
282298// @public
0 commit comments