diff --git a/packages/compiler/design/architecture.md b/packages/compiler/design/architecture.md index 9c140c6ffd..776207b34c 100644 --- a/packages/compiler/design/architecture.md +++ b/packages/compiler/design/architecture.md @@ -68,7 +68,7 @@ GreetComponent = tslib_1.__decorate([ ], GreetComponent); ``` -which translates the decorator into a form that is is executed at runtime. A `.d.ts` file is also emitted that might look something like +which translates the decorator into a form that is executed at runtime. A `.d.ts` file is also emitted that might look something like ```ts export class GreetComponent { @@ -146,7 +146,7 @@ TypeScript supports the following extension points to alter its output. You can, 1. Modify the TypeScript source it sees (`CompilerHost.getSourceFile`) 2. Alter the list of transforms (`CustomTransformers`) -3. Intercept the the output before it is written (`WriteFileCallback`) +3. Intercept the output before it is written (`WriteFileCallback`) It is not recommended to alter the source code as this complicates the managing of source maps, makes it difficult to support incremental parsing, and is not supported by TypeScript's language service plug-in model.