From ccb5ff6caf6ee6e7ca0dbb963eb2c65b4399f297 Mon Sep 17 00:00:00 2001 From: Kyzgor Date: Sun, 8 Mar 2026 21:27:33 +0000 Subject: [PATCH] fix(build): add declaration maps for better editor navigation Enable `declarationMap` in tsconfig.json to generate `.d.ts.map` files alongside type declarations. This fixes "Go to Definition" in editors like VS Code, which currently navigates to compiled JS without type information instead of the typed declaration files. Refs #77 --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index f766dcf..f9351d5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "moduleResolution": "node", "module": "commonjs", "declaration": true, + "declarationMap": true, "inlineSourceMap": true, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, "resolveJsonModule": true /* Include modules imported with .json extension. */,