Skip to content

Add docs for TypeScriptEnableIncrementalMSBuild #1474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>` 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 `<TypeScriptEnableIncrementalMSBuild>false</TypeScriptEnableIncrementalMSBuild>` to ensure the TypeScript compiler is invoked with every run of MSBuild.
13 changes: 7 additions & 6 deletions packages/documentation/copy/pt/reference/Mixins.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand Down Expand Up @@ -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)
);
});
});
Expand Down Expand Up @@ -266,8 +267,8 @@ function derivado<T>() {
return Derivado;
}

class Spec extends Derivado<string>() {}
class Spec extends derivado<string>() {}

Spec.prop; // string
Spec.anotherProp; // string
Spec.outraProp; // string
```