Offers a way to configure the root directory for where declaration files are emitted.
example
├── index.ts
├── package.json
└── tsconfig.jsonexample
├── index.ts
├── package.json
└── tsconfig.jsonwith this tsconfig.json:
json
{
"compilerOptions": {
"declaration": true,
"declarationDir": "./types"
}
}{
"compilerOptions": {
"declaration": true,
"declarationDir": "./types"
}
}Would place the d.ts for the index.ts in a types folder:
example
├── index.js
├── index.ts
├── package.json
├── tsconfig.json
└── types
└── index.d.tsexample
├── index.js
├── index.ts
├── package.json
├── tsconfig.json
└── types
└── index.d.ts