typescript 5.1.0-dev.20230319 → 5.1.0-dev.20230321
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.decorators.legacy.d.ts +1 -1
- package/lib/tsc.js +459 -560
- package/lib/tsserver.js +699 -771
- package/lib/tsserverlibrary.d.ts +6 -6
- package/lib/tsserverlibrary.js +710 -790
- package/lib/typescript.d.ts +6 -6
- package/lib/typescript.js +705 -786
- package/lib/typingsInstaller.js +75 -256
- package/package.json +2 -2
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -9340,7 +9340,7 @@ declare namespace ts {
|
|
|
9340
9340
|
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
|
|
9341
9341
|
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
|
|
9342
9342
|
*/
|
|
9343
|
-
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode):
|
|
9343
|
+
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
|
|
9344
9344
|
/**
|
|
9345
9345
|
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
|
9346
9346
|
* defined mode of the import if provided, or, if not, the mode of the containing file (with some exceptions: import=require is always commonjs, dynamic import is always esm).
|
|
@@ -9360,7 +9360,7 @@ declare namespace ts {
|
|
|
9360
9360
|
*/
|
|
9361
9361
|
function getModeForUsageLocation(file: {
|
|
9362
9362
|
impliedNodeFormat?: ResolutionMode;
|
|
9363
|
-
}, usage: StringLiteralLike):
|
|
9363
|
+
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
9364
9364
|
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
9365
9365
|
/**
|
|
9366
9366
|
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
@@ -9541,8 +9541,8 @@ declare namespace ts {
|
|
|
9541
9541
|
*/
|
|
9542
9542
|
emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>;
|
|
9543
9543
|
}
|
|
9544
|
-
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost):
|
|
9545
|
-
function createIncrementalCompilerHost(options: CompilerOptions, system?:
|
|
9544
|
+
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
|
|
9545
|
+
function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
|
|
9546
9546
|
function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
|
|
9547
9547
|
/**
|
|
9548
9548
|
* Create the watch compiler host for either configFile or fileNames and its options
|
|
@@ -9698,8 +9698,8 @@ declare namespace ts {
|
|
|
9698
9698
|
* Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
|
|
9699
9699
|
*/
|
|
9700
9700
|
function createBuilderStatusReporter(system: System, pretty?: boolean): DiagnosticReporter;
|
|
9701
|
-
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
9702
|
-
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
9701
|
+
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportErrorSummary?: ReportEmitErrorSummary): SolutionBuilderHost<T>;
|
|
9702
|
+
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): SolutionBuilderWithWatchHost<T>;
|
|
9703
9703
|
function createSolutionBuilder<T extends BuilderProgram>(host: SolutionBuilderHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions): SolutionBuilder<T>;
|
|
9704
9704
|
function createSolutionBuilderWithWatch<T extends BuilderProgram>(host: SolutionBuilderWithWatchHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions, baseWatchOptions?: WatchOptions): SolutionBuilder<T>;
|
|
9705
9705
|
interface BuildOptions {
|