From 379e8c5e198927dd3ca36b3c2e37a55d5faca647 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 10 Sep 2018 22:16:31 +0200 Subject: [PATCH] docs: add `disableTypeScriptVersionCheck` documentation (#25537) PR Close #25537 --- aio/content/guide/aot-compiler.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index 3022437e57..83295a7f18 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -1482,6 +1482,14 @@ to allow it to be imported from template factory modules. See Setting this option to `false` disables this rewriting, requiring the rewriting to be done manually. +### *disableTypeScriptVersionCheck* + +When `true`, this option tells the compiler not to check the TypeScript version. +The compiler will skip checking and will not error out when an unsupported version of TypeScript is used. +Setting this option to `true` is not recommended because unsupported versions of TypeScript might have undefined behaviour. + +This option is `false` by default. + ### *preserveWhitespaces* This option tells the compiler whether to remove blank text nodes from compiled templates.