Skip to content

Commit 9162a9a

Browse files
authored
feat: Add TypeScript definitions (#90)
1 parent 0f26c11 commit 9162a9a

File tree

3 files changed

+102
-10
lines changed

3 files changed

+102
-10
lines changed

package-lock.json

Lines changed: 87 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,15 @@
5050
"madge": "5.0.1",
5151
"mailgun.js": "3.5.9",
5252
"nyc": "15.1.0",
53-
"semantic-release": "21.0.2"
53+
"semantic-release": "21.0.2",
54+
"typescript": "5.2.2"
5455
},
5556
"engines": {
5657
"node": ">=12"
5758
},
5859
"scripts": {
5960
"build:watch": "babel src --out-dir lib --source-maps --watch",
60-
"build": "babel src --out-dir lib --source-maps",
61+
"build": "babel src --out-dir lib --source-maps && tsc",
6162
"lint": "eslint '{src,spec,demo}/**/*.js' 'release.config.js'",
6263
"lint:fix": "eslint '{src,spec,demo}/**/*.js' --fix",
6364
"madge": "node_modules/.bin/madge ./src $npm_config_arg",

tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"include": [
3+
"src/**/*"
4+
],
5+
"compilerOptions": {
6+
"allowJs": true,
7+
"declaration": true,
8+
"emitDeclarationOnly": true,
9+
"outDir": "lib",
10+
"declarationMap": true
11+
}
12+
}

0 commit comments

Comments
 (0)