Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 621 Bytes

declarationDir.md

File metadata and controls

36 lines (30 loc) · 621 Bytes
display Declaration Dir
oneline Specify the output directory for generated declaration files.

Offers a way to configure the root directory for where declaration files are emitted.

example
├── index.ts
├── package.json
└── tsconfig.json

with this tsconfig.json:

{
  "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.ts