typescript 5.1.0-dev.20230320 → 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 +391 -515
- package/lib/tsserver.js +631 -726
- package/lib/tsserverlibrary.d.ts +6 -6
- package/lib/tsserverlibrary.js +642 -745
- package/lib/typescript.d.ts +6 -6
- package/lib/typescript.js +637 -741
- package/lib/typingsInstaller.js +74 -255
- package/package.json +2 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -5397,7 +5397,7 @@ declare namespace ts {
|
|
|
5397
5397
|
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
|
|
5398
5398
|
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
|
|
5399
5399
|
*/
|
|
5400
|
-
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode):
|
|
5400
|
+
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
|
|
5401
5401
|
/**
|
|
5402
5402
|
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
|
5403
5403
|
* 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).
|
|
@@ -5417,7 +5417,7 @@ declare namespace ts {
|
|
|
5417
5417
|
*/
|
|
5418
5418
|
function getModeForUsageLocation(file: {
|
|
5419
5419
|
impliedNodeFormat?: ResolutionMode;
|
|
5420
|
-
}, usage: StringLiteralLike):
|
|
5420
|
+
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5421
5421
|
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5422
5422
|
/**
|
|
5423
5423
|
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
@@ -5598,8 +5598,8 @@ declare namespace ts {
|
|
|
5598
5598
|
*/
|
|
5599
5599
|
emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>;
|
|
5600
5600
|
}
|
|
5601
|
-
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost):
|
|
5602
|
-
function createIncrementalCompilerHost(options: CompilerOptions, system?:
|
|
5601
|
+
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
|
|
5602
|
+
function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
|
|
5603
5603
|
function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
|
|
5604
5604
|
/**
|
|
5605
5605
|
* Create the watch compiler host for either configFile or fileNames and its options
|
|
@@ -5755,8 +5755,8 @@ declare namespace ts {
|
|
|
5755
5755
|
* Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
|
|
5756
5756
|
*/
|
|
5757
5757
|
function createBuilderStatusReporter(system: System, pretty?: boolean): DiagnosticReporter;
|
|
5758
|
-
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
5759
|
-
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
5758
|
+
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportErrorSummary?: ReportEmitErrorSummary): SolutionBuilderHost<T>;
|
|
5759
|
+
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): SolutionBuilderWithWatchHost<T>;
|
|
5760
5760
|
function createSolutionBuilder<T extends BuilderProgram>(host: SolutionBuilderHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions): SolutionBuilder<T>;
|
|
5761
5761
|
function createSolutionBuilderWithWatch<T extends BuilderProgram>(host: SolutionBuilderWithWatchHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions, baseWatchOptions?: WatchOptions): SolutionBuilder<T>;
|
|
5762
5762
|
interface BuildOptions {
|