diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md
index 5711c8f950d..89da312503a 100644
--- a/.github/ISSUE_TEMPLATE/Bug_report.md
+++ b/.github/ISSUE_TEMPLATE/Bug_report.md
@@ -16,7 +16,7 @@ Please fill in the *entire* template below.
-->
-**TypeScript Version:** 3.3.0-dev.201xxxxx
+**TypeScript Version:** 3.4.0-dev.201xxxxx
**Search Terms:**
diff --git a/Gulpfile.js b/Gulpfile.js
index fb10563067b..68a2b79f222 100644
--- a/Gulpfile.js
+++ b/Gulpfile.js
@@ -232,7 +232,7 @@ task("watch-tsserver").flags = {
" --built": "Compile using the built version of the compiler."
}
-task("min", series(lkgPreBuild, buildTsc, buildServer));
+task("min", series(lkgPreBuild, parallel(buildTsc, buildServer)));
task("min").description = "Builds only tsc and tsserver";
task("min").flags = {
" --built": "Compile using the built version of the compiler."
diff --git a/doc/spec.md b/doc/spec.md
index edf8455ac54..741d4f29cec 100644
--- a/doc/spec.md
+++ b/doc/spec.md
@@ -3715,7 +3715,7 @@ the array literal initializer expression is contextually typed by the implied ty
## 5.3 Let and Const Declarations
-Let and const declarations are exended to include optional type annotations.
+Let and const declarations are extended to include optional type annotations.
*LexicalBinding:* *( Modified )*
*SimpleLexicalBinding*
diff --git a/lib/lib.es5.d.ts b/lib/lib.es5.d.ts
index d1a9d6f0d2a..068ef13470a 100644
--- a/lib/lib.es5.d.ts
+++ b/lib/lib.es5.d.ts
@@ -1046,14 +1046,14 @@ interface JSON {
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
- parse(text: string, reviver?: (key: any, value: any) => any): any;
+ parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
- stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string;
+ stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
diff --git a/scripts/authors.ts b/scripts/authors.ts
index b616ceb8601..b52898244b6 100644
--- a/scripts/authors.ts
+++ b/scripts/authors.ts
@@ -4,7 +4,7 @@ import child_process = require("child_process");
type Author = {
displayNames: string[];
- preferedName?: string;
+ preferredName?: string;
emails: string[];
};
@@ -20,7 +20,7 @@ const authorsPath = path.resolve("../AUTHORS.md");
function getKnownAuthors(): Author[] {
const segmentRegExp = /\s?([^<]+)\s+<([^>]+)>/g;
- const preferedNameRegeExp = /\s?#\s?([^#]+)$/;
+ const preferredNameRegeExp = /\s?#\s?([^#]+)$/;
const knownAuthors: Author[] = [];
if (!fs.existsSync(mailMapPath)) {
@@ -37,13 +37,13 @@ function getKnownAuthors(): Author[] {
author.displayNames.push(match[1]);
author.emails.push(match[2]);
}
- if (match = preferedNameRegeExp.exec(line)) {
- author.preferedName = match[1];
+ if (match = preferredNameRegeExp.exec(line)) {
+ author.preferredName = match[1];
}
if (!author.emails) continue;
knownAuthors.push(author);
- if (line.indexOf("#") > 0 && !author.preferedName) {
- throw new Error("Could not match prefered name for: " + line);
+ if (line.indexOf("#") > 0 && !author.preferredName) {
+ throw new Error("Could not match preferred name for: " + line);
}
// console.log("===> line: " + line);
// console.log(JSON.stringify(author, undefined, 2));
@@ -52,7 +52,7 @@ function getKnownAuthors(): Author[] {
}
function getAuthorName(author: Author) {
- return author.preferedName || author.displayNames[0];
+ return author.preferredName || author.displayNames[0];
}
function getKnownAuthorMaps() {
diff --git a/scripts/bisect-test.ts b/scripts/bisect-test.ts
index 948b272470f..cc0248f6d64 100644
--- a/scripts/bisect-test.ts
+++ b/scripts/bisect-test.ts
@@ -5,7 +5,7 @@
import cp = require('child_process');
import fs = require('fs');
-// Slice off 'node bisect-test.js' from the commandline args
+// Slice off 'node bisect-test.js' from the command line args
var args = process.argv.slice(2);
function tsc(tscArgs: string, onExit: (exitCode: number) => void) {
diff --git a/scripts/createBenchmark.ts b/scripts/createBenchmark.ts
index 6148d80bf2c..254c0d99af0 100644
--- a/scripts/createBenchmark.ts
+++ b/scripts/createBenchmark.ts
@@ -30,7 +30,7 @@ var rawCompilerSources = "";
sourceFiles.forEach(f=> {
rawCompilerSources += "\r\n" + fs.readFileSync(path.join(tsSourceDir, f)).toString();
});
-var compilerSoruces = `var compilerSources = ${JSON.stringify(rawCompilerSources) };`;
+var compilerSources = `var compilerSources = ${JSON.stringify(rawCompilerSources) };`;
// .js code for the compiler, what we are actually testing
var rawCompilerJavaScript = fs.readFileSync(path.join(tsBuildDir, "tsc.js")).toString();
@@ -38,7 +38,7 @@ rawCompilerJavaScript = rawCompilerJavaScript.replace("ts.executeCommandLine(ts.
// lib.d.ts sources
var rawLibSources = fs.readFileSync(path.join(tsBuildDir, "lib.d.ts")).toString();
-var libSoruces = `var libSources = ${JSON.stringify(rawLibSources) };`;
+var libSources = `var libSources = ${JSON.stringify(rawLibSources) };`;
// write test output
if (!fs.existsSync(testOutputDir)) {
@@ -48,7 +48,7 @@ if (!fs.existsSync(testOutputDir)) {
// 1. compiler ts sources, used to test
fs.writeFileSync(
path.join(testOutputDir, "compilerSources.js"),
- `${ compilerSoruces } \r\n ${ libSoruces }`);
+ `${ compilerSources } \r\n ${ libSources }`);
// 2. the compiler js sources + a call the compiler
fs.writeFileSync(
diff --git a/scripts/generateLocalizedDiagnosticMessages.ts b/scripts/generateLocalizedDiagnosticMessages.ts
index a9183c8ddbe..98bae170baa 100644
--- a/scripts/generateLocalizedDiagnosticMessages.ts
+++ b/scripts/generateLocalizedDiagnosticMessages.ts
@@ -1,177 +1,177 @@
-import * as fs from "fs";
-import * as path from "path";
-import * as xml2js from "xml2js";
-
-function main(): void {
- const args = process.argv.slice(2);
- if (args.length !== 3) {
- console.log("Usage:");
- console.log("\tnode generateLocalizedDiagnosticMessages.js