Skip to content

Commit

Permalink
Add d.ts export for better typing
Browse files Browse the repository at this point in the history
  • Loading branch information
GoudronViande24 committed Jul 18, 2022
1 parent 100d73a commit 6c53202
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "reseau-discord",
"version": "1.0.1",
"version": "1.0.2",
"description": "Node.js package to interact with the Réseau Discord Artivain API. Official one or selfhosted.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"scripts": {
"test": "tsc && node testing.js",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"target": "ES2022",
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist"
"outDir": "dist",
"declaration": true
},
"lib": [
"es2015"
Expand Down

0 comments on commit 6c53202

Please sign in to comment.