typescript 5.3.0-dev.20231009 → 5.3.0-dev.20231011
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 +168 -76
- package/lib/tsserver.js +265 -179
- package/lib/typescript.d.ts +15 -3
- package/lib/typescript.js +265 -179
- package/lib/typingsInstaller.js +39 -16
- package/package.json +4 -3
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 {
|
|
@@ -3354,7 +3354,6 @@ declare namespace ts {
|
|
|
3354
3354
|
readFile(fileName: string): string | undefined;
|
|
3355
3355
|
writeFile(fileName: string, content: string): void;
|
|
3356
3356
|
fileExists(file: string): boolean;
|
|
3357
|
-
getModuleResolutionCache(): ModuleResolutionCache | undefined;
|
|
3358
3357
|
directoryExists(path: string): boolean;
|
|
3359
3358
|
getDirectories(path: string): string[];
|
|
3360
3359
|
log(s: string): void;
|
|
@@ -3379,7 +3378,7 @@ declare namespace ts {
|
|
|
3379
3378
|
disableLanguageService(lastFileExceededProgramSize?: string): void;
|
|
3380
3379
|
getProjectName(): string;
|
|
3381
3380
|
protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition;
|
|
3382
|
-
getExternalFiles(): SortedReadonlyArray<string>;
|
|
3381
|
+
getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray<string>;
|
|
3383
3382
|
getSourceFile(path: Path): ts.SourceFile | undefined;
|
|
3384
3383
|
close(): void;
|
|
3385
3384
|
private detachScriptInfoIfNotRoot;
|
|
@@ -9829,6 +9828,19 @@ declare namespace ts {
|
|
|
9829
9828
|
function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined;
|
|
9830
9829
|
function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[];
|
|
9831
9830
|
function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer;
|
|
9831
|
+
enum ProgramUpdateLevel {
|
|
9832
|
+
/** Program is updated with same root file names and options */
|
|
9833
|
+
Update = 0,
|
|
9834
|
+
/** Loads program after updating root file names from the disk */
|
|
9835
|
+
RootNamesAndUpdate = 1,
|
|
9836
|
+
/**
|
|
9837
|
+
* Loads program completely, including:
|
|
9838
|
+
* - re-reading contents of config file from disk
|
|
9839
|
+
* - calculating root file names for the program
|
|
9840
|
+
* - Updating the program
|
|
9841
|
+
*/
|
|
9842
|
+
Full = 2,
|
|
9843
|
+
}
|
|
9832
9844
|
function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined;
|
|
9833
9845
|
function resolveTripleslashReference(moduleName: string, containingFile: string): string;
|
|
9834
9846
|
function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost;
|