From 06fd5acc30338d5c2b1db2f44a0cbf399e9b22f1 Mon Sep 17 00:00:00 2001 From: Ben Lichtman Date: Thu, 7 Jan 2021 12:33:19 -0800 Subject: [PATCH 1/3] Add docs for TypeScriptEnableIncrementalMSBuild --- .../copy/en/project-config/Compiler Options in MSBuild.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/documentation/copy/en/project-config/Compiler Options in MSBuild.md b/packages/documentation/copy/en/project-config/Compiler Options in MSBuild.md index b746c0b1392b..e942a307882b 100644 --- a/packages/documentation/copy/en/project-config/Compiler Options in MSBuild.md +++ b/packages/documentation/copy/en/project-config/Compiler Options in MSBuild.md @@ -127,3 +127,8 @@ Users using newer versions of TS, will see a prompt to upgrade their project on If you are using a different build tool to build your project (e.g. gulp, grunt , etc.) and VS for the development and debugging experience, set `true` in your project. This should give you all the editing support, but not the build when you hit F5. + +## TypeScriptEnableIncrementalMSBuild + +By default, MSBuild will attempt to only run the TypeScript compiler when the project's source files have been updated since the last compilation. +However, if this behavior is causing issues, such as when TypeScript's `incremental` option is enabled, set `false` to ensure the TypeScript compiler is invoked with every run of MSBuild. From 61ad010607b716675f78d6b3047b16e7517debf7 Mon Sep 17 00:00:00 2001 From: Ben Lichtman Date: Thu, 7 Jan 2021 13:12:22 -0800 Subject: [PATCH 2/3] Fix unrelated test failure --- packages/documentation/copy/pt/reference/Mixins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/documentation/copy/pt/reference/Mixins.md b/packages/documentation/copy/pt/reference/Mixins.md index f80daa4f9d69..6de3997eda95 100644 --- a/packages/documentation/copy/pt/reference/Mixins.md +++ b/packages/documentation/copy/pt/reference/Mixins.md @@ -1,7 +1,7 @@ --- title: Mixins layout: docs -permalink: /docs/handbook/mixins.html +permalink: /pt/docs/handbook/mixins.html oneline: Usando o padrão Mixin com TypeScript translatable: true --- @@ -170,7 +170,7 @@ class Saltavel { saltar() {} } -class Abaixavel { +class Abaixavel { abaixar() {} } From 04a317ec53aaf1768df1400c3e376318e71c76a6 Mon Sep 17 00:00:00 2001 From: Orta Date: Fri, 8 Jan 2021 11:35:03 +0000 Subject: [PATCH 3/3] Locally validate the pt mixins --- packages/documentation/copy/pt/reference/Mixins.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/documentation/copy/pt/reference/Mixins.md b/packages/documentation/copy/pt/reference/Mixins.md index 19534c88597c..e0c13cd7c26e 100644 --- a/packages/documentation/copy/pt/reference/Mixins.md +++ b/packages/documentation/copy/pt/reference/Mixins.md @@ -194,11 +194,12 @@ console.log(jogador.x, jogador.y); // Isso pode estar em qualquer lugar em sua base de código: function aplicarMixins(derivadoCtor: any, construtores: any[]) { construtores.forEach((baseCtor) => { - Object.obterNomesDePropriedade(baseCtor.prototype).forEach((nome) => { + Object.getOwnPropertyNames(baseCtor.prototype).forEach((nome) => { Object.defineProperty( - derivedCtor.prototype, + derivadoCtor.prototype, nome, - Object.obterNomesDePropriedade(baseCtor.prototype, nome) + Object.getOwnPropertyDescriptor(baseCtor.prototype, nome) || + Object.create(null) ); }); }); @@ -266,8 +267,8 @@ function derivado() { return Derivado; } -class Spec extends Derivado() {} +class Spec extends derivado() {} Spec.prop; // string -Spec.anotherProp; // string +Spec.outraProp; // string ```