From 41c7c9e3a7094699bf10dc851a89aa5b2530b0a4 Mon Sep 17 00:00:00 2001 From: Hermes Gjini Date: Tue, 2 May 2017 10:45:58 +0200 Subject: [PATCH 1/4] fixed typo in Typescript 1.7 section --- What's-new-in-TypeScript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/What's-new-in-TypeScript.md b/What's-new-in-TypeScript.md index 8184eae..b4a5d18 100644 --- a/What's-new-in-TypeScript.md +++ b/What's-new-in-TypeScript.md @@ -2611,7 +2611,7 @@ f2({ x: 1, y: 1 }); ## Support for decorators when targeting ES3 -Decorators are now allowed when targeting ES3. TypeScript 1.7 removes the ES5-specific use of `reduceRight` from the `__decorate` helper. The changes also inline calls `Object.getOwnPropertyDescriptor` and `Object.defineProperty` in a backwards-compatible fashion that allows for a to clean up the emit for ES5 and later by removing various repetitive calls to the aforementioned `Object` methods. +Decorators are now allowed when targeting ES3. TypeScript 1.7 removes the ES5-specific use of `reduceRight` from the `__decorate` helper. The changes also inline calls to `Object.getOwnPropertyDescriptor` and `Object.defineProperty` in a backwards-compatible fashion that allows for clean up of the emit for ES5 and later by removing various repetitive calls to the aforementioned `Object` methods. # TypeScript 1.6 From 865c4cf71139a1a88ed5bc8698aefcde46a39ecc Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Fri, 5 May 2017 09:41:35 -0700 Subject: [PATCH 2/4] Fix typo. --- What's-new-in-TypeScript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/What's-new-in-TypeScript.md b/What's-new-in-TypeScript.md index b4a5d18..3bb3a29 100644 --- a/What's-new-in-TypeScript.md +++ b/What's-new-in-TypeScript.md @@ -114,7 +114,7 @@ TypeScript 2.3 adds support for declaring defaults for generic type parameters. #### Example -Consider a function that creates a new `HTMLElement`, calling it with no arguments generats an `Div`; you can optionally pass a list of children as well. Previously you would have to define it as: +Consider a function that creates a new `HTMLElement`, calling it with no arguments generates an `Div`; you can optionally pass a list of children as well. Previously you would have to define it as: ```ts declare function create(): Container; From a53a85783d43f56c24c526ac9d1723dc63c09be5 Mon Sep 17 00:00:00 2001 From: Martyn Jones Date: Mon, 8 May 2017 15:03:23 +0100 Subject: [PATCH 3/4] Fix typo --- What's-new-in-TypeScript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/What's-new-in-TypeScript.md b/What's-new-in-TypeScript.md index 3bb3a29..df21a81 100644 --- a/What's-new-in-TypeScript.md +++ b/What's-new-in-TypeScript.md @@ -114,7 +114,7 @@ TypeScript 2.3 adds support for declaring defaults for generic type parameters. #### Example -Consider a function that creates a new `HTMLElement`, calling it with no arguments generates an `Div`; you can optionally pass a list of children as well. Previously you would have to define it as: +Consider a function that creates a new `HTMLElement`, calling it with no arguments generates a `Div`; you can optionally pass a list of children as well. Previously you would have to define it as: ```ts declare function create(): Container; From b7ea99e2654d798d4d75a21d0b865930b91b55b0 Mon Sep 17 00:00:00 2001 From: Vineet Kumar Date: Thu, 11 May 2017 15:34:54 -0700 Subject: [PATCH 4/4] Fix comma splice. Change a run-on sentence into 2 sentences. --- Coding-guidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Coding-guidelines.md b/Coding-guidelines.md index 6f5571c..edf5a6b 100644 --- a/Coding-guidelines.md +++ b/Coding-guidelines.md @@ -26,7 +26,7 @@ These guidelines are mainly **meant for contributors to the TypeScript project** 4. Within a file, type definitions should come first. ## `null` and `undefined` -1. Use **undefined**, do not use null. +1. Use **undefined**. Do not use null. ## General Assumptions 1. Consider objects like Nodes, Symbols, etc. as immutable outside the component that created them. Do not change them. @@ -84,4 +84,4 @@ For a variety of reasons, we avoid certain constructs, and use some of our own. 3. `function f(x: number, y: string): void { }` 6. Use a single declaration per variable statement
(i.e. use `var x = 1; var y = 2;` over `var x = 1, y = 2;`). 7. `else` goes on a separate line from the closing curly brace. -8. Use 4 spaces per indentation. \ No newline at end of file +8. Use 4 spaces per indentation.