@typescript-deploys/pr-build 5.3.0-pr-55547-8 → 5.3.0-pr-55739-8
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 +148 -58
- package/lib/tsserver.js +179 -69
- package/lib/typescript.d.ts +16 -5
- package/lib/typescript.js +180 -71
- package/lib/typingsInstaller.js +41 -16
- package/package.json +3 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -3616,6 +3616,7 @@ declare namespace ts {
|
|
|
3616
3616
|
typesMapLocation?: string;
|
|
3617
3617
|
serverMode?: LanguageServiceMode;
|
|
3618
3618
|
session: Session<unknown> | undefined;
|
|
3619
|
+
jsDocParsingMode?: JSDocParsingMode;
|
|
3619
3620
|
}
|
|
3620
3621
|
interface WatchOptionsAndErrors {
|
|
3621
3622
|
watchOptions: WatchOptions;
|
|
@@ -3690,6 +3691,7 @@ declare namespace ts {
|
|
|
3690
3691
|
private performanceEventHandler?;
|
|
3691
3692
|
private pendingPluginEnablements?;
|
|
3692
3693
|
private currentPluginEnablementPromise?;
|
|
3694
|
+
readonly jsDocParsingMode: JSDocParsingMode | undefined;
|
|
3693
3695
|
constructor(opts: ProjectServiceOptions);
|
|
3694
3696
|
toPath(fileName: string): Path;
|
|
3695
3697
|
private loadTypesMap;
|
|
@@ -8607,6 +8609,11 @@ declare namespace ts {
|
|
|
8607
8609
|
IndexSignatureParameters = 8848,
|
|
8608
8610
|
JSDocComment = 33,
|
|
8609
8611
|
}
|
|
8612
|
+
enum JSDocParsingMode {
|
|
8613
|
+
KeepAll = 0,
|
|
8614
|
+
KeepSemanticOnly = 1,
|
|
8615
|
+
SkipAll = 2,
|
|
8616
|
+
}
|
|
8610
8617
|
interface UserPreferences {
|
|
8611
8618
|
readonly disableSuggestions?: boolean;
|
|
8612
8619
|
readonly quotePreference?: "auto" | "double" | "single";
|
|
@@ -8768,6 +8775,8 @@ declare namespace ts {
|
|
|
8768
8775
|
setOnError(onError: ErrorCallback | undefined): void;
|
|
8769
8776
|
setScriptTarget(scriptTarget: ScriptTarget): void;
|
|
8770
8777
|
setLanguageVariant(variant: LanguageVariant): void;
|
|
8778
|
+
setScriptKind(scriptKind: ScriptKind): void;
|
|
8779
|
+
setJSDocParsingMode(kind: JSDocParsingMode): void;
|
|
8771
8780
|
/** @deprecated use {@link resetTokenState} */
|
|
8772
8781
|
setTextPos(textPos: number): void;
|
|
8773
8782
|
resetTokenState(pos: number): void;
|
|
@@ -9413,7 +9422,7 @@ declare namespace ts {
|
|
|
9413
9422
|
* that they appear in the source code. The language service depends on this property to locate nodes by position.
|
|
9414
9423
|
*/
|
|
9415
9424
|
function forEachChild<T>(node: Node, cbNode: (node: Node) => T | undefined, cbNodes?: (nodes: NodeArray<Node>) => T | undefined): T | undefined;
|
|
9416
|
-
function createSourceFile(fileName: string, sourceText: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind): SourceFile;
|
|
9425
|
+
function createSourceFile(fileName: string, sourceText: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, jsDocParsingMode?: JSDocParsingMode): SourceFile;
|
|
9417
9426
|
function parseIsolatedEntityName(text: string, languageVersion: ScriptTarget): EntityName | undefined;
|
|
9418
9427
|
/**
|
|
9419
9428
|
* Parse json text into SyntaxTree and return node and parse errors if any
|
|
@@ -9718,7 +9727,7 @@ declare namespace ts {
|
|
|
9718
9727
|
function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer;
|
|
9719
9728
|
function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined;
|
|
9720
9729
|
function resolveTripleslashReference(moduleName: string, containingFile: string): string;
|
|
9721
|
-
function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost;
|
|
9730
|
+
function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean, jsDocParsingMode?: JSDocParsingMode): CompilerHost;
|
|
9722
9731
|
function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly Diagnostic[];
|
|
9723
9732
|
function formatDiagnostics(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
9724
9733
|
function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
|
|
@@ -9930,7 +9939,7 @@ declare namespace ts {
|
|
|
9930
9939
|
emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>;
|
|
9931
9940
|
}
|
|
9932
9941
|
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
|
|
9933
|
-
function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
|
|
9942
|
+
function createIncrementalCompilerHost(options: CompilerOptions, system?: System, jsDocParsingMode?: JSDocParsingMode): CompilerHost;
|
|
9934
9943
|
function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
|
|
9935
9944
|
/**
|
|
9936
9945
|
* Create the watch compiler host for either configFile or fileNames and its options
|
|
@@ -10027,6 +10036,7 @@ declare namespace ts {
|
|
|
10027
10036
|
* Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
|
|
10028
10037
|
*/
|
|
10029
10038
|
getModuleResolutionCache?(): ModuleResolutionCache | undefined;
|
|
10039
|
+
jsDocParsingMode?: JSDocParsingMode;
|
|
10030
10040
|
}
|
|
10031
10041
|
interface WatchCompilerHost<T extends BuilderProgram> extends ProgramHost<T>, WatchHost {
|
|
10032
10042
|
/** Instead of using output d.ts file from project reference, use its source file */
|
|
@@ -10277,6 +10287,7 @@ declare namespace ts {
|
|
|
10277
10287
|
installPackage?(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
|
|
10278
10288
|
writeFile?(fileName: string, content: string): void;
|
|
10279
10289
|
getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
|
|
10290
|
+
jsDocParsingMode?: JSDocParsingMode;
|
|
10280
10291
|
}
|
|
10281
10292
|
type WithMetadata<T> = T & {
|
|
10282
10293
|
metadata?: unknown;
|
|
@@ -11374,7 +11385,7 @@ declare namespace ts {
|
|
|
11374
11385
|
fileName: string;
|
|
11375
11386
|
highlightSpans: HighlightSpan[];
|
|
11376
11387
|
}
|
|
11377
|
-
function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string): DocumentRegistry;
|
|
11388
|
+
function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string, jsDocParsingMode?: JSDocParsingMode): DocumentRegistry;
|
|
11378
11389
|
/**
|
|
11379
11390
|
* The document registry represents a store of SourceFile objects that can be shared between
|
|
11380
11391
|
* multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST)
|
|
@@ -11482,7 +11493,7 @@ declare namespace ts {
|
|
|
11482
11493
|
function displayPartsToString(displayParts: SymbolDisplayPart[] | undefined): string;
|
|
11483
11494
|
function getDefaultCompilerOptions(): CompilerOptions;
|
|
11484
11495
|
function getSupportedCodeFixes(): readonly string[];
|
|
11485
|
-
function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTargetOrOptions: ScriptTarget | CreateSourceFileOptions, version: string, setNodeParents: boolean, scriptKind?: ScriptKind): SourceFile;
|
|
11496
|
+
function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTargetOrOptions: ScriptTarget | CreateSourceFileOptions, version: string, setNodeParents: boolean, scriptKind?: ScriptKind, jsDocParsingMode?: JSDocParsingMode): SourceFile;
|
|
11486
11497
|
function updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: string, textChangeRange: TextChangeRange | undefined, aggressiveChecks?: boolean): SourceFile;
|
|
11487
11498
|
function createLanguageService(host: LanguageServiceHost, documentRegistry?: DocumentRegistry, syntaxOnlyOrLanguageServiceMode?: boolean | LanguageServiceMode): LanguageService;
|
|
11488
11499
|
/**
|