diff --git a/frontend/encore/typescript.rst b/frontend/encore/typescript.rst index 686d5ea0974..5979042d7b3 100644 --- a/frontend/encore/typescript.rst +++ b/frontend/encore/typescript.rst @@ -26,7 +26,8 @@ Encore, you're done! Any ``.ts`` files that you require will be processed correctly. You can also configure the `ts-loader options`_ via the ``enableTypeScriptLoader()`` -method. See the `Encore's index.js file`_ for detailed documentation. +method. See the `Encore's index.js file`_ for detailed documentation and check +out the `tsconfig.json reference`_ and the `Webpack guide about Typescript`_. If React is enabled (``.enableReactPreset()``), any ``.tsx`` file will also be processed by ``ts-loader``. @@ -34,3 +35,5 @@ processed by ``ts-loader``. .. _`TypeScript`: https://www.typescriptlang.org/ .. _`ts-loader options`: https://github.com/TypeStrong/ts-loader#options .. _`Encore's index.js file`: https://github.com/symfony/webpack-encore/blob/master/index.js +.. _`tsconfig.json reference`: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html +.. _`Webpack guide about Typescript`: https://webpack.js.org/guides/typescript/