Skip to content

Commit

Permalink
[pinpoint-apm#117] typescript tools for .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Sep 26, 2022
1 parent 8f10d53 commit 80d621a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Generate d.ts files
"declaration": true,
// This compiler run should
// only output d.ts files
"emitDeclarationOnly": true,
// Types should go into this directory.
// Removing this would place the .d.ts files
// next to the .js files
"outDir": "dist",
// go to js file when using IDE functions like
// "Go to Definition" in VSCode
"declarationMap": true
},
// Change this to match your project
"include": [
"lib/**/*"
]
}

0 comments on commit 80d621a

Please sign in to comment.