From e2de9288bd44f217d76e2e73a4f0b549f270cb57 Mon Sep 17 00:00:00 2001 From: arthurfiorette Date: Tue, 23 Nov 2021 09:50:46 -0300 Subject: [PATCH] build: emit declaration in dist folder If it's in the types folder, when importing a subpath like `axios-cache-interceptor/dist/storage/memory`, the types cannot be inferred. --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index c676e5b..c1bcca8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -63,7 +63,7 @@ // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */ - "declarationDir": "./types", /* Specify the output directory for generated declaration files. */ + // "declarationDir": "./types", /* Specify the output directory for generated declaration files. */ /* Interop Constraints */ "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */