summaryrefslogtreecommitdiff
path: root/package.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 /package.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 'package.json')
-rw-r--r--package.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/package.json b/package.json
index bdc383e..83aed06 100644
--- a/package.json
+++ b/package.json
@@ -3,10 +3,11 @@
"version": "1.1.0",
"description": "A library for parsing and validating South African ID Numbers.",
"main": "south-african-id-parser.js",
+ "types": "south-african-id-parser.d.ts",
"scripts": {
"pretest": "eslint ./",
"test": "mocha",
- "docs": "jsdoc --configure .jsdocrc.json"
+ "docs": "tsc && jsdoc --configure .jsdocrc.json"
},
"keywords": [
"South Africa",
@@ -33,6 +34,7 @@
"eslint": "^8.42.0",
"jsdoc": "^4.0.2",
"mocha": "^10.2.0",
- "requirejs": "^2.3.6"
+ "requirejs": "^2.3.6",
+ "typescript": "^5.1.6"
}
}