Skip to content

Commit 0335000

Browse files
committed
Update TS/JS config files
1 parent e3f0631 commit 0335000

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

jsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2+
// Only include files in the src directory
3+
"include": [
4+
"src/**/*"
5+
],
26
"compilerOptions": {
7+
// Tells the compiler to check JS files
38
"checkJs": true
49
}
5-
}
10+
}

tsconfig.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
// Only include files in the src directory
3+
"include": [
4+
"src/**/*"
5+
],
6+
"compilerOptions": {
7+
// Tells TypeScript to read JS files, as
8+
// normally they are ignored as source files
9+
"allowJs": true,
10+
// Generate d.ts files
11+
"declaration": true,
12+
// This compiler run should only output d.ts files
13+
"emitDeclarationOnly": true,
14+
// Types should go into this directory.
15+
// Removing this would place the .d.ts files
16+
// next to the .js files
17+
"outDir": "types",
18+
// go to js file when using IDE functions like
19+
// "Go to Definition" in VSCode
20+
"declarationMap": true
21+
}
22+
}

0 commit comments

Comments
 (0)