@@ -142,6 +142,7 @@ export namespace NodeLoaderHooksAPI2 {
142142 parentURL: string ;
143143 }, defaultResolve : ResolveHook ) => Promise <{
144144 url: string ;
145+ format? : NodeLoaderHooksFormat ;
145146 }>;
146147}
147148
@@ -278,7 +279,7 @@ export interface TSCommon {
278279 // (undocumented)
279280 resolveModuleNameFromCache: typeof _ts .resolveModuleNameFromCache ;
280281 // (undocumented)
281- resolveTypeReferenceDirective: typeof _ts .resolveTypeReferenceDirective ;
282+ resolveTypeReferenceDirective( typeReferenceDirectiveName : string , containingFile : string | undefined , options : _ts .CompilerOptions , host : _ts . ModuleResolutionHost , redirectedReference ? : _ts . ResolvedProjectReference , cache ? : _ts . TypeReferenceDirectiveResolutionCache , resolutionMode ? : _ts . SourceFile [ ' impliedNodeFormat ' ]) : _ts . ResolvedTypeReferenceDirectiveWithFailedLookupLocations ;
282283 // (undocumented)
283284 ScriptSnapshot: typeof _ts .ScriptSnapshot ;
284285 // (undocumented)
@@ -291,6 +292,33 @@ export interface TSCommon {
291292 version: typeof _ts .version ;
292293}
293294
295+ // @public (undocumented)
296+ export namespace TSCommon {
297+ // (undocumented)
298+ export type CompilerOptions = _ts .CompilerOptions ;
299+ // (undocumented)
300+ export type FileReference = _ts .FileReference ;
301+ // (undocumented)
302+ export interface LanguageServiceHost extends _ts .LanguageServiceHost {
303+ // (undocumented)
304+ resolveTypeReferenceDirectives? (typeDirectiveNames : string [] | _ts .FileReference [], containingFile : string , redirectedReference : _ts .ResolvedProjectReference | undefined , options : _ts .CompilerOptions , containingFileMode ? : _ts .SourceFile [' impliedNodeFormat' ] | undefined ): (_ts .ResolvedTypeReferenceDirective | undefined )[];
305+ }
306+ // (undocumented)
307+ export type ModuleResolutionHost = _ts .ModuleResolutionHost ;
308+ // (undocumented)
309+ export type ParsedCommandLine = _ts .ParsedCommandLine ;
310+ // (undocumented)
311+ export type ResolvedModule = _ts .ResolvedModule ;
312+ // (undocumented)
313+ export type ResolvedModuleWithFailedLookupLocations = _ts .ResolvedModuleWithFailedLookupLocations ;
314+ // (undocumented)
315+ export type ResolvedProjectReference = _ts .ResolvedProjectReference ;
316+ // (undocumented)
317+ export type ResolvedTypeReferenceDirective = _ts .ResolvedTypeReferenceDirective ;
318+ // (undocumented)
319+ export type SourceFile = _ts .SourceFile ;
320+ }
321+
294322// @public
295323export interface TsConfigOptions extends Omit <RegisterOptions , ' transformers' | ' readFile' | ' fileExists' | ' skipProject' | ' project' | ' dir' | ' cwd' | ' projectSearchDir' | ' optionBasePaths' | ' tsTrace' > {
296324}
0 commit comments