From 263ca06ec44bf2b49c5fe21611b787ba73f8c65e Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Wed, 30 Aug 2023 15:08:09 +0200 Subject: [PATCH] Enable TypeScript declaration maps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This enables “Go to Definition” in TypeScript based editors. --- .gitignore | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 69d75b1a..67c4168d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ node_modules/ .DS_Store *.d.ts *.log +*.map yarn.lock !/index.d.ts !/test/types.d.ts diff --git a/tsconfig.json b/tsconfig.json index 2c12ea63..7347690d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "checkJs": true, "customConditions": ["development"], "declaration": true, + "declarationMap": true, "emitDeclarationOnly": true, "exactOptionalPropertyTypes": true, "lib": ["es2022"],