Skip to content

Commit

Permalink
add barebones typescript config
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikac committed Apr 12, 2024
1 parent 022c9ab commit 4f7cb1a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"mocha": "^10.3.0",
"node-fetch": "^3.3.2",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^5.4.5",
"yauzl-promise": "^4.0.0"
},
"license": "MPL-2.0",
Expand Down
15 changes: 15 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"include": ["dist/ical.js"],
"compilerOptions": {
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Generate d.ts files
"declaration": true,
// only output d.ts files
"emitDeclarationOnly": true,
// go to js file when using IDE functions like
// "Go to Definition" in VSCode
"declarationMap": true
}
}

0 comments on commit 4f7cb1a

Please sign in to comment.