Skip to content

Commit ae4a503

Browse files
committed
TypeScript fix by adding global declaration file
1 parent 1d9aa45 commit ae4a503

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "tests"
88
},
99
"main": "src/client.ts",
10-
"types": "src/client.ts",
10+
"types": "types/index.d.ts",
1111
"scripts": {
1212
"prepare": "npm run build",
1313
"build": "tsc",

types/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import ImmudbClient from '../src/client'
2+
3+
export default ImmudbClient
File renamed without changes.

0 commit comments

Comments
 (0)