Skip to content

Commit 3e0390f

Browse files
committed
TSConfig Italian translation: added declarationDir.md
1 parent d42e88c commit 3e0390f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
display: "Directory dichiarazioni"
3+
oneline: "Definisce la directory principale per i file .d.ts"
4+
---
5+
6+
Offre una maniera di configurare la directory root in cui salvare i file di dichiarazione.
7+
8+
```
9+
esempio
10+
├── index.ts
11+
├── package.json
12+
└── tsconfig.json
13+
```
14+
15+
con questo `tsconfig.json`:
16+
17+
```json tsconfig
18+
{
19+
"compilerOptions": {
20+
"declaration": true,
21+
"declarationDir": "./tipi"
22+
}
23+
}
24+
```
25+
26+
Inserira i file `d.ts` per `index.ts` in una cartella `tipi`:
27+
28+
```
29+
esempio
30+
├── index.js
31+
├── index.ts
32+
├── package.json
33+
├── tsconfig.json
34+
└── tipi
35+
└── index.d.ts
36+
```

0 commit comments

Comments
 (0)