summaryrefslogtreecommitdiff
path: root/tsconfig.json
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-08-04 21:57:35 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-08-07 10:41:44 +0200
commita0d4c3c3447e07ba66ce4d8882d051eafe2d4d28 (patch)
tree8fac49344785d4b90cd293c0c1f4585fdf5a01f3 /tsconfig.json
parent6a158dd03c24fb7d7e66b7b93a4906702020ca22 (diff)
Add typescript types to the package
This doesn't change any internal workings, but makes this package easier to use by anyone using Typescript. Fix #12
Diffstat (limited to 'tsconfig.json')
-rw-r--r--tsconfig.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..34dd6f7
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ // Change this to match your project
+ "include": ["*.js"],
+ "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,
+ // go to js file when using IDE functions like
+ // "Go to Definition" in VSCode
+ "declarationMap": true
+ }
+}