typescript 5.7.0-dev.20240903 → 5.7.0-dev.20240911
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/lib.esnext.array.d.ts +1 -1
- package/lib/tsc.js +228 -164
- package/lib/typescript.d.ts +10 -2
- package/lib/typescript.js +477 -313
- package/package.json +13 -14
package/lib/typescript.d.ts
CHANGED
|
@@ -2808,7 +2808,6 @@ declare namespace ts {
|
|
|
2808
2808
|
abstract class Project implements LanguageServiceHost, ModuleResolutionHost {
|
|
2809
2809
|
readonly projectKind: ProjectKind;
|
|
2810
2810
|
readonly projectService: ProjectService;
|
|
2811
|
-
private documentRegistry;
|
|
2812
2811
|
private compilerOptions;
|
|
2813
2812
|
compileOnSaveEnabled: boolean;
|
|
2814
2813
|
protected watchOptions: WatchOptions | undefined;
|
|
@@ -2931,7 +2930,6 @@ declare namespace ts {
|
|
|
2931
2930
|
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
|
|
2932
2931
|
refreshDiagnostics(): void;
|
|
2933
2932
|
private isDefaultProjectForOpenFiles;
|
|
2934
|
-
private getCompilerOptionsForNoDtsResolutionProject;
|
|
2935
2933
|
}
|
|
2936
2934
|
/**
|
|
2937
2935
|
* If a file is opened and no tsconfig (or jsconfig) is found,
|
|
@@ -9125,6 +9123,7 @@ declare namespace ts {
|
|
|
9125
9123
|
jsDocParsingMode?: JSDocParsingMode;
|
|
9126
9124
|
}
|
|
9127
9125
|
function parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => string | undefined): ParsedCommandLine;
|
|
9126
|
+
function parseBuildCommand(commandLine: readonly string[]): ParsedBuildCommand;
|
|
9128
9127
|
/**
|
|
9129
9128
|
* Reads the config file, reports errors if any and exits if the config file cannot be found
|
|
9130
9129
|
*/
|
|
@@ -9179,6 +9178,13 @@ declare namespace ts {
|
|
|
9179
9178
|
options: TypeAcquisition;
|
|
9180
9179
|
errors: Diagnostic[];
|
|
9181
9180
|
};
|
|
9181
|
+
/** Parsed command line for build */
|
|
9182
|
+
interface ParsedBuildCommand {
|
|
9183
|
+
buildOptions: BuildOptions;
|
|
9184
|
+
watchOptions: WatchOptions | undefined;
|
|
9185
|
+
projects: string[];
|
|
9186
|
+
errors: Diagnostic[];
|
|
9187
|
+
}
|
|
9182
9188
|
type DiagnosticReporter = (diagnostic: Diagnostic) => void;
|
|
9183
9189
|
/**
|
|
9184
9190
|
* Reports config file diagnostics
|
|
@@ -9906,6 +9912,8 @@ declare namespace ts {
|
|
|
9906
9912
|
emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined;
|
|
9907
9913
|
}
|
|
9908
9914
|
type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T>;
|
|
9915
|
+
/** Returns true if commandline is --build and needs to be parsed useing parseBuildCommand */
|
|
9916
|
+
function isBuildCommand(commandLineArgs: readonly string[]): boolean;
|
|
9909
9917
|
function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings;
|
|
9910
9918
|
/**
|
|
9911
9919
|
* Represents an immutable snapshot of a script at a specified time.Once acquired, the
|