From 398cfa5b08023a52ed25bd9452a55a0abc86e5f7 Mon Sep 17 00:00:00 2001 From: Oliver Salzburg Date: Tue, 28 Jul 2020 08:59:15 +0200 Subject: [PATCH] docs: remove obsolete note about issue The mentioned issue has been fixed in TypeScript 3.7 --- docs/developing/types.md | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/docs/developing/types.md b/docs/developing/types.md index 62c42f4e..7083aafd 100644 --- a/docs/developing/types.md +++ b/docs/developing/types.md @@ -83,34 +83,6 @@ You will need to add to this to your `tsconfig.json`. e.g. we need to include the js files from @open-wc and you can not have it in an exclude. -However as `allowJs` prevents you from generating definition files for your own typescript files ([issue 7546](https://github.com/Microsoft/TypeScript/issues/7546)) you probably want to have an alternative config `tsconfig.build.json` for that. - -```json -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "allowJs": false, - "checkJs": false - } -} -``` - -You can then use it like so in you `package.json` - -```json -{ - "scripts": { - "lint:types": "tsc", - "build": "tsc -p tsconfig.build.json" - } -} -``` - -That way - -- `tsconfig.json` will be used by the language server (in VS code) -- `tsconfig.build.json` will be used to build your typescript project (including definition files) - Example how a full config might look like ```json