typescript 5.3.0-dev.20231009 → 5.3.0-dev.20231010
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +79 -45
- package/lib/tsserver.js +130 -95
- package/lib/typescript.d.ts +15 -2
- package/lib/typescript.js +130 -95
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -3274,7 +3274,7 @@ declare namespace ts {
|
|
|
3274
3274
|
}
|
|
3275
3275
|
interface PluginModule {
|
|
3276
3276
|
create(createInfo: PluginCreateInfo): LanguageService;
|
|
3277
|
-
getExternalFiles?(proj: Project): string[];
|
|
3277
|
+
getExternalFiles?(proj: Project, updateLevel: ProgramUpdateLevel): string[];
|
|
3278
3278
|
onConfigurationChanged?(config: any): void;
|
|
3279
3279
|
}
|
|
3280
3280
|
interface PluginModuleWithName {
|
|
@@ -3379,7 +3379,7 @@ declare namespace ts {
|
|
|
3379
3379
|
disableLanguageService(lastFileExceededProgramSize?: string): void;
|
|
3380
3380
|
getProjectName(): string;
|
|
3381
3381
|
protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition;
|
|
3382
|
-
getExternalFiles(): SortedReadonlyArray<string>;
|
|
3382
|
+
getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray<string>;
|
|
3383
3383
|
getSourceFile(path: Path): ts.SourceFile | undefined;
|
|
3384
3384
|
close(): void;
|
|
3385
3385
|
private detachScriptInfoIfNotRoot;
|
|
@@ -9829,6 +9829,19 @@ declare namespace ts {
|
|
|
9829
9829
|
function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined;
|
|
9830
9830
|
function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[];
|
|
9831
9831
|
function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer;
|
|
9832
|
+
enum ProgramUpdateLevel {
|
|
9833
|
+
/** Program is updated with same root file names and options */
|
|
9834
|
+
Update = 0,
|
|
9835
|
+
/** Loads program after updating root file names from the disk */
|
|
9836
|
+
RootNamesAndUpdate = 1,
|
|
9837
|
+
/**
|
|
9838
|
+
* Loads program completely, including:
|
|
9839
|
+
* - re-reading contents of config file from disk
|
|
9840
|
+
* - calculating root file names for the program
|
|
9841
|
+
* - Updating the program
|
|
9842
|
+
*/
|
|
9843
|
+
Full = 2,
|
|
9844
|
+
}
|
|
9832
9845
|
function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined;
|
|
9833
9846
|
function resolveTripleslashReference(moduleName: string, containingFile: string): string;
|
|
9834
9847
|
function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost;
|