Skip to content

Commit 980b273

Browse files
Bump version to 4.2.1-rc and LKG
1 parent 12e7691 commit 980b273

12 files changed

+5471
-3344
lines changed

lib/lib.es5.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4351,8 +4351,8 @@ declare namespace Intl {
43514351

43524352
interface DateTimeFormatOptions {
43534353
localeMatcher?: "best fit" | "lookup";
4354-
weekday?:"long" | "short" | "narrow";
4355-
era?:"long" | "short" | "narrow";
4354+
weekday?: "long" | "short" | "narrow";
4355+
era?: "long" | "short" | "narrow";
43564356
year?: "numeric" | "2-digit";
43574357
month?: "numeric" | "2-digit" | "long" | "short" | "narrow";
43584358
day?: "numeric" | "2-digit";

lib/protocol.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2516,6 +2516,7 @@ declare namespace ts.server.protocol {
25162516
readonly provideRefactorNotApplicableReason?: boolean;
25172517
readonly allowRenameOfImportPath?: boolean;
25182518
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
2519+
readonly generateReturnInDocTemplate?: boolean;
25192520
}
25202521
interface CompilerOptions {
25212522
allowJs?: boolean;

lib/tsc.js

+625-451
Large diffs are not rendered by default.

lib/tsserver.js

+1,052-624
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -2656,8 +2656,6 @@ declare namespace ts {
26562656
export interface TemplateLiteralType extends InstantiableType {
26572657
texts: readonly string[];
26582658
types: readonly Type[];
2659-
freshType: TemplateLiteralType;
2660-
regularType: TemplateLiteralType;
26612659
}
26622660
export interface StringMappingType extends InstantiableType {
26632661
symbol: Symbol;
@@ -3970,6 +3968,7 @@ declare namespace ts {
39703968
reScanJsxToken(): JsxTokenSyntaxKind;
39713969
reScanLessThanToken(): SyntaxKind;
39723970
reScanQuestionToken(): SyntaxKind;
3971+
reScanInvalidIdentifier(): SyntaxKind;
39733972
scanJsxToken(): JsxTokenSyntaxKind;
39743973
scanJsDocToken(): JSDocSyntaxKind;
39753974
scan(): SyntaxKind;
@@ -5556,7 +5555,7 @@ declare namespace ts {
55565555
getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
55575556
getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
55585557
getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
5559-
getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion | undefined;
5558+
getDocCommentTemplateAtPosition(fileName: string, position: number, options?: DocCommentTemplateOptions): TextInsertion | undefined;
55605559
isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean;
55615560
/**
55625561
* This will return a defined result if the position is after the `>` of the opening tag, or somewhere in the text, of a JSXElement with no closing tag.
@@ -6021,11 +6020,15 @@ declare namespace ts {
60216020
interface RenameInfoOptions {
60226021
readonly allowRenameOfImportPath?: boolean;
60236022
}
6023+
interface DocCommentTemplateOptions {
6024+
readonly generateReturnInDocTemplate?: boolean;
6025+
}
60246026
interface SignatureHelpParameter {
60256027
name: string;
60266028
documentation: SymbolDisplayPart[];
60276029
displayParts: SymbolDisplayPart[];
60286030
isOptional: boolean;
6031+
isRest?: boolean;
60296032
}
60306033
interface SelectionRange {
60316034
textSpan: TextSpan;
@@ -9046,6 +9049,7 @@ declare namespace ts.server.protocol {
90469049
readonly provideRefactorNotApplicableReason?: boolean;
90479050
readonly allowRenameOfImportPath?: boolean;
90489051
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
9052+
readonly generateReturnInDocTemplate?: boolean;
90499053
}
90509054
interface CompilerOptions {
90519055
allowJs?: boolean;
@@ -9267,7 +9271,6 @@ declare namespace ts.server {
92679271
private missingFilesMap;
92689272
private generatedFilesMap;
92699273
private plugins;
9270-
private lastFileExceededProgramSize;
92719274
protected languageService: LanguageService;
92729275
languageServiceEnabled: boolean;
92739276
readonly trace?: (s: string) => void;

lib/tsserverlibrary.js

+1,050-620
Large diffs are not rendered by default.

lib/typescript.d.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -2656,8 +2656,6 @@ declare namespace ts {
26562656
export interface TemplateLiteralType extends InstantiableType {
26572657
texts: readonly string[];
26582658
types: readonly Type[];
2659-
freshType: TemplateLiteralType;
2660-
regularType: TemplateLiteralType;
26612659
}
26622660
export interface StringMappingType extends InstantiableType {
26632661
symbol: Symbol;
@@ -3970,6 +3968,7 @@ declare namespace ts {
39703968
reScanJsxToken(): JsxTokenSyntaxKind;
39713969
reScanLessThanToken(): SyntaxKind;
39723970
reScanQuestionToken(): SyntaxKind;
3971+
reScanInvalidIdentifier(): SyntaxKind;
39733972
scanJsxToken(): JsxTokenSyntaxKind;
39743973
scanJsDocToken(): JSDocSyntaxKind;
39753974
scan(): SyntaxKind;
@@ -5556,7 +5555,7 @@ declare namespace ts {
55565555
getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
55575556
getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
55585557
getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
5559-
getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion | undefined;
5558+
getDocCommentTemplateAtPosition(fileName: string, position: number, options?: DocCommentTemplateOptions): TextInsertion | undefined;
55605559
isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean;
55615560
/**
55625561
* This will return a defined result if the position is after the `>` of the opening tag, or somewhere in the text, of a JSXElement with no closing tag.
@@ -6021,11 +6020,15 @@ declare namespace ts {
60216020
interface RenameInfoOptions {
60226021
readonly allowRenameOfImportPath?: boolean;
60236022
}
6023+
interface DocCommentTemplateOptions {
6024+
readonly generateReturnInDocTemplate?: boolean;
6025+
}
60246026
interface SignatureHelpParameter {
60256027
name: string;
60266028
documentation: SymbolDisplayPart[];
60276029
displayParts: SymbolDisplayPart[];
60286030
isOptional: boolean;
6031+
isRest?: boolean;
60296032
}
60306033
interface SelectionRange {
60316034
textSpan: TextSpan;

0 commit comments

Comments
 (0)