@@ -28,6 +28,7 @@ export interface CreateOptions {
2828 emit? : boolean ;
2929 esm? : boolean ;
3030 experimentalReplAwait? : boolean ;
31+ experimentalSpecifierResolution? : ' node' | ' explicit' ;
3132 // (undocumented)
3233 fileExists? : (path : string ) => boolean ;
3334 files? : boolean ;
@@ -59,7 +60,7 @@ export interface CreateOptions {
5960// @public
6061export function createRepl(options ? : CreateReplOptions ): ReplService ;
6162
62- // @public (undocumented)
63+ // @public
6364export interface CreateReplOptions {
6465 // (undocumented)
6566 service? : Service ;
@@ -75,7 +76,7 @@ export interface CreateReplOptions {
7576 stdout? : NodeJS .WritableStream ;
7677}
7778
78- // @public (undocumented)
79+ // @public
7980export interface CreateTranspilerOptions {
8081 // (undocumented)
8182 service: Pick <Service , Extract <' config' | ' options' | ' projectLocalResolveHelper' , keyof Service >>;
@@ -85,7 +86,13 @@ export interface CreateTranspilerOptions {
8586export type EvalAwarePartialHost = Pick <CreateOptions , ' readFile' | ' fileExists' >;
8687
8788// @public (undocumented)
88- export type ModuleTypes = Record <string , ' cjs' | ' esm' | ' package' >;
89+ export type ExperimentalSpecifierResolution = ' node' | ' explicit' ;
90+
91+ // @public (undocumented)
92+ export type ModuleTypeOverride = ' cjs' | ' esm' | ' package' ;
93+
94+ // @public (undocumented)
95+ export type ModuleTypes = Record <string , ModuleTypeOverride >;
8996
9097// @public (undocumented)
9198export interface NodeLoaderHooksAPI1 {
@@ -131,6 +138,7 @@ export namespace NodeLoaderHooksAPI2 {
131138 }, defaultLoad : NodeLoaderHooksAPI2 [' load' ]) => Promise <{
132139 format: NodeLoaderHooksFormat ;
133140 source: string | Buffer | undefined ;
141+ shortCircuit? : boolean ;
134142 }>;
135143 // (undocumented)
136144 export interface NodeImportAssertions {
@@ -147,12 +155,16 @@ export namespace NodeLoaderHooksAPI2 {
147155 }, defaultResolve : ResolveHook ) => Promise <{
148156 url: string ;
149157 format? : NodeLoaderHooksFormat ;
158+ shortCircuit? : boolean ;
150159 }>;
151160}
152161
153162// @public (undocumented)
154163export type NodeLoaderHooksFormat = ' builtin' | ' commonjs' | ' dynamic' | ' json' | ' module' | ' wasm' ;
155164
165+ // @public
166+ export type NodeModuleEmitKind = ' nodeesm' | ' nodecjs' ;
167+
156168// @public @deprecated
157169export type Register = Service ;
158170
@@ -167,7 +179,7 @@ export const REGISTER_INSTANCE: unique symbol;
167179
168180// @public
169181export interface RegisterOptions extends CreateOptions {
170- experimentalResolverFeatures ? : boolean ;
182+ experimentalResolver ? : boolean ;
171183}
172184
173185// @public (undocumented)
@@ -202,13 +214,13 @@ export interface Service {
202214 ts: TSCommon ;
203215}
204216
205- // @public (undocumented)
217+ // @public
206218export interface TranspileOptions {
207219 // (undocumented)
208220 fileName: string ;
209221}
210222
211- // @public (undocumented)
223+ // @public
212224export interface TranspileOutput {
213225 // (undocumented)
214226 diagnostics? : _ts .Diagnostic [];
@@ -218,7 +230,7 @@ export interface TranspileOutput {
218230 sourceMapText? : string ;
219231}
220232
221- // @public (undocumented)
233+ // @public
222234export interface Transpiler {
223235 // (undocumented)
224236 transpile(input : string , options : TranspileOptions ): TranspileOutput ;
@@ -270,7 +282,7 @@ export interface TSCommon {
270282 // (undocumented)
271283 JsxEmit: typeof _ts .JsxEmit ;
272284 // (undocumented)
273- ModuleKind: typeof _ts . ModuleKind ;
285+ ModuleKind: TSCommon . ModuleKindEnum ;
274286 // (undocumented)
275287 ModuleResolutionKind: typeof _ts .ModuleResolutionKind ;
276288 // (undocumented)
@@ -307,6 +319,12 @@ export namespace TSCommon {
307319 resolveTypeReferenceDirectives? (typeDirectiveNames : string [] | _ts .FileReference [], containingFile : string , redirectedReference : _ts .ResolvedProjectReference | undefined , options : _ts .CompilerOptions , containingFileMode ? : _ts .SourceFile [' impliedNodeFormat' ] | undefined ): (_ts .ResolvedTypeReferenceDirective | undefined )[];
308320 }
309321 // (undocumented)
322+ export type ModuleKindEnum = typeof _ts .ModuleKind & {
323+ Node16: typeof _ts .ModuleKind extends {
324+ Node16: any ;
325+ } ? typeof _ts .ModuleKind [' Node16' ] : 100 ;
326+ };
327+ // (undocumented)
310328 export type ModuleResolutionHost = _ts .ModuleResolutionHost ;
311329 // (undocumented)
312330 export type ParsedCommandLine = _ts .ParsedCommandLine ;
@@ -328,10 +346,12 @@ export interface TsConfigOptions extends Omit<RegisterOptions, 'transformers' |
328346
329347// @public
330348export class TSError extends BaseError {
331- constructor (diagnosticText : string , diagnosticCodes : number []);
349+ constructor (diagnosticText : string , diagnosticCodes : number [], diagnostics ? : ReadonlyArray < _ts . Diagnostic > );
332350 // (undocumented)
333351 diagnosticCodes: number [];
334352 // (undocumented)
353+ diagnostics: ReadonlyArray <_ts .Diagnostic >;
354+ // (undocumented)
335355 diagnosticText: string ;
336356 // (undocumented)
337357 name: string ;
0 commit comments