Skip to content

Commit 12d86dc

Browse files
committed
Merge remote-tracking branch 'upstream/master'
* upstream/master: (58 commits) Variadic tuple types (microsoft#39094) chore: resolve suggestions Expand auto-import to all package.json dependencies (microsoft#38923) inline local functions Update bigint declaration file (microsoft#38526) Update user baselines (microsoft#39077) LEGO: check in for master to temporary branch. Add missing index.ts files to user projects (microsoft#39163) Add reason for a disabled code action (microsoft#37871) Minor fix for assertion predicates (microsoft#38710) Update LKG (microsoft#39173) Reparse top level 'await' in modules (microsoft#39084) change chore: more change chore: resolve review chore: save space fix: lint error test: add test for it chore: make isJsxAttr required chore: revert change in checker ... # Conflicts: # src/compiler/binder.ts # src/compiler/checker.ts # src/compiler/parser.ts # src/compiler/types.ts
2 parents 09801d4 + d479206 commit 12d86dc

File tree

790 files changed

+396141
-347999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

790 files changed

+396141
-347999
lines changed

.vscode/launch.template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"sourceMaps": true,
4545
"smartStep": true,
46-
"preLaunchTask": "tests",
46+
"preLaunchTask": "gulp: tests",
4747
"console": "integratedTerminal",
4848
"outFiles": [
4949
"${workspaceRoot}/built/local/run.js"

.vscode/tasks.json

+27-16
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,42 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"type": "shell",
8-
"identifier": "local",
7+
"type": "gulp",
98
"label": "gulp: local",
10-
"command": "gulp",
11-
"args": ["local"],
12-
"group": { "kind": "build", "isDefault": true },
13-
"problemMatcher": ["$gulp-tsc"]
9+
"task": "local",
10+
"group": {
11+
"kind": "build",
12+
"isDefault": true
13+
},
14+
"problemMatcher": [
15+
"$tsc"
16+
]
1417
},
1518
{
16-
"type": "shell",
17-
"identifier": "tsc",
19+
"type": "gulp",
1820
"label": "gulp: tsc",
19-
"command": "gulp",
20-
"args": ["tsc"],
21+
"task": "tsc",
2122
"group": "build",
22-
"problemMatcher": ["$gulp-tsc"]
23+
"problemMatcher": [
24+
"$tsc"
25+
]
2326
},
2427
{
25-
"type": "shell",
26-
"identifier": "tests",
28+
"type": "gulp",
2729
"label": "gulp: tests",
28-
"command": "gulp",
29-
"args": ["tests"],
30+
"task": "tests",
3031
"group": "build",
31-
"problemMatcher": ["$gulp-tsc"]
32+
"problemMatcher": [
33+
"$tsc"
34+
]
35+
},
36+
{
37+
"type": "gulp",
38+
"task": "services",
39+
"label": "gulp: services",
40+
"problemMatcher": [
41+
"$tsc"
42+
],
3243
}
3344
]
3445
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# TypeScript
33

44
[![Build Status](https://travis-ci.org/microsoft/TypeScript.svg?branch=master)](https://travis-ci.org/microsoft/TypeScript)
5-
[![VSTS Build Status](https://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.com/typescript/TypeScript/_build/latest?definitionId=4&view=logs)
5+
[![Devops Build Status](https://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.com/typescript/TypeScript/_build?definitionId=7)
66
[![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript)
77
[![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript)
88

lib/cs/diagnosticMessages.generated.json

+26-8
Large diffs are not rendered by default.

lib/de/diagnosticMessages.generated.json

+26-5
Large diffs are not rendered by default.

lib/es/diagnosticMessages.generated.json

+28-7
Large diffs are not rendered by default.

lib/fr/diagnosticMessages.generated.json

+28-7
Large diffs are not rendered by default.

lib/it/diagnosticMessages.generated.json

+27-6
Large diffs are not rendered by default.

lib/ja/diagnosticMessages.generated.json

+29-8
Large diffs are not rendered by default.

lib/ko/diagnosticMessages.generated.json

+29-8
Large diffs are not rendered by default.

lib/lib.dom.d.ts

+78-38
Large diffs are not rendered by default.

lib/lib.es2015.core.d.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -454,48 +454,48 @@ interface String {
454454
startsWith(searchString: string, position?: number): boolean;
455455

456456
/**
457-
* Returns an <a> HTML anchor element and sets the name attribute to the text value
457+
* Returns an `<a>` HTML anchor element and sets the name attribute to the text value
458458
* @param name
459459
*/
460460
anchor(name: string): string;
461461

462-
/** Returns a <big> HTML element */
462+
/** Returns a `<big>` HTML element */
463463
big(): string;
464464

465-
/** Returns a <blink> HTML element */
465+
/** Returns a `<blink>` HTML element */
466466
blink(): string;
467467

468-
/** Returns a <b> HTML element */
468+
/** Returns a `<b>` HTML element */
469469
bold(): string;
470470

471-
/** Returns a <tt> HTML element */
471+
/** Returns a `<tt>` HTML element */
472472
fixed(): string;
473473

474-
/** Returns a <font> HTML element and sets the color attribute value */
474+
/** Returns a `<font>` HTML element and sets the color attribute value */
475475
fontcolor(color: string): string;
476476

477-
/** Returns a <font> HTML element and sets the size attribute value */
477+
/** Returns a `<font>` HTML element and sets the size attribute value */
478478
fontsize(size: number): string;
479479

480-
/** Returns a <font> HTML element and sets the size attribute value */
480+
/** Returns a `<font>` HTML element and sets the size attribute value */
481481
fontsize(size: string): string;
482482

483-
/** Returns an <i> HTML element */
483+
/** Returns an `<i>` HTML element */
484484
italics(): string;
485485

486-
/** Returns an <a> HTML element and sets the href attribute value */
486+
/** Returns an `<a>` HTML element and sets the href attribute value */
487487
link(url: string): string;
488488

489-
/** Returns a <small> HTML element */
489+
/** Returns a `<small>` HTML element */
490490
small(): string;
491491

492-
/** Returns a <strike> HTML element */
492+
/** Returns a `<strike>` HTML element */
493493
strike(): string;
494494

495-
/** Returns a <sub> HTML element */
495+
/** Returns a `<sub>` HTML element */
496496
sub(): string;
497497

498-
/** Returns a <sup> HTML element */
498+
/** Returns a `<sup>` HTML element */
499499
sup(): string;
500500
}
501501

lib/lib.es2017.sharedmemory.d.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ interface Atomics {
122122
/**
123123
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
124124
* number of agents that were awoken.
125+
* @param typedArray A shared Int32Array.
126+
* @param index The position in the typedArray to wake up on.
127+
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
125128
*/
126-
notify(typedArray: Int32Array, index: number, count: number): number;
129+
notify(typedArray: Int32Array, index: number, count?: number): number;
127130

128131
/**
129132
* Stores the bitwise XOR of a value with the value at the given position in the array,

lib/lib.es2020.bigint.d.ts

+24-24
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ interface BigInt64Array {
8989

9090
/**
9191
* Determines whether all the members of an array satisfy the specified test.
92-
* @param callbackfn A function that accepts up to three arguments. The every method calls
93-
* the callbackfn function for each element in the array until the callbackfn returns false,
92+
* @param predicate A function that accepts up to three arguments. The every method calls
93+
* the predicate function for each element in the array until the predicate returns false,
9494
* or until the end of the array.
95-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
95+
* @param thisArg An object to which the this keyword can refer in the predicate function.
9696
* If thisArg is omitted, undefined is used as the this value.
9797
*/
98-
every(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
98+
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
9999

100100
/**
101101
* Returns the this object after filling the section identified by start and end with value
@@ -109,12 +109,12 @@ interface BigInt64Array {
109109

110110
/**
111111
* Returns the elements of an array that meet the condition specified in a callback function.
112-
* @param callbackfn A function that accepts up to three arguments. The filter method calls
113-
* the callbackfn function one time for each element in the array.
114-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
112+
* @param predicate A function that accepts up to three arguments. The filter method calls
113+
* the predicate function one time for each element in the array.
114+
* @param thisArg An object to which the this keyword can refer in the predicate function.
115115
* If thisArg is omitted, undefined is used as the this value.
116116
*/
117-
filter(callbackfn: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
117+
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
118118

119119
/**
120120
* Returns the value of the first element in the array where predicate is true, and undefined
@@ -260,13 +260,13 @@ interface BigInt64Array {
260260

261261
/**
262262
* Determines whether the specified callback function returns true for any element of an array.
263-
* @param callbackfn A function that accepts up to three arguments. The some method calls the
264-
* callbackfn function for each element in the array until the callbackfn returns true, or until
263+
* @param predicate A function that accepts up to three arguments. The some method calls the
264+
* predicate function for each element in the array until the predicate returns true, or until
265265
* the end of the array.
266-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
266+
* @param thisArg An object to which the this keyword can refer in the predicate function.
267267
* If thisArg is omitted, undefined is used as the this value.
268268
*/
269-
some(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
269+
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
270270

271271
/**
272272
* Sorts the array.
@@ -361,13 +361,13 @@ interface BigUint64Array {
361361

362362
/**
363363
* Determines whether all the members of an array satisfy the specified test.
364-
* @param callbackfn A function that accepts up to three arguments. The every method calls
365-
* the callbackfn function for each element in the array until the callbackfn returns false,
364+
* @param predicate A function that accepts up to three arguments. The every method calls
365+
* the predicate function for each element in the array until the predicate returns false,
366366
* or until the end of the array.
367-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
367+
* @param thisArg An object to which the this keyword can refer in the predicate function.
368368
* If thisArg is omitted, undefined is used as the this value.
369369
*/
370-
every(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
370+
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
371371

372372
/**
373373
* Returns the this object after filling the section identified by start and end with value
@@ -381,12 +381,12 @@ interface BigUint64Array {
381381

382382
/**
383383
* Returns the elements of an array that meet the condition specified in a callback function.
384-
* @param callbackfn A function that accepts up to three arguments. The filter method calls
385-
* the callbackfn function one time for each element in the array.
386-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
384+
* @param predicate A function that accepts up to three arguments. The filter method calls
385+
* the predicate function one time for each element in the array.
386+
* @param thisArg An object to which the this keyword can refer in the predicate function.
387387
* If thisArg is omitted, undefined is used as the this value.
388388
*/
389-
filter(callbackfn: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
389+
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
390390

391391
/**
392392
* Returns the value of the first element in the array where predicate is true, and undefined
@@ -532,13 +532,13 @@ interface BigUint64Array {
532532

533533
/**
534534
* Determines whether the specified callback function returns true for any element of an array.
535-
* @param callbackfn A function that accepts up to three arguments. The some method calls the
536-
* callbackfn function for each element in the array until the callbackfn returns true, or until
535+
* @param predicate A function that accepts up to three arguments. The some method calls the
536+
* predicate function for each element in the array until the predicate returns true, or until
537537
* the end of the array.
538-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
538+
* @param thisArg An object to which the this keyword can refer in the predicate function.
539539
* If thisArg is omitted, undefined is used as the this value.
540540
*/
541-
some(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
541+
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
542542

543543
/**
544544
* Sorts the array.

lib/lib.es2020.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ and limitations under the License.
2323
/// <reference lib="es2020.promise" />
2424
/// <reference lib="es2020.string" />
2525
/// <reference lib="es2020.symbol.wellknown" />
26+
/// <reference lib="es2020.intl" />

0 commit comments

Comments
 (0)