Skip to content

Commit

Permalink
build: emit declaration in dist folder
Browse files Browse the repository at this point in the history
If it's in the types folder, when importing a subpath like `axios-cache-interceptor/dist/storage/memory`, the types cannot be inferred.
  • Loading branch information
arthurfiorette committed Nov 23, 2021
1 parent c2c4097 commit e2de928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit e2de928

Please sign in to comment.