diff --git a/.gitignore b/.gitignore index d4e0402..44dfc9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ .DS_Store -coverage/ \ No newline at end of file +coverage/ +package-lock.json diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..72d0ab8 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,5 @@ +import { BaseConverter } from 'base-x'; + +declare const base58: BaseConverter; + +export = base58; diff --git a/package.json b/package.json index da0ca3c..7a51767 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bs58", - "version": "4.0.1", + "version": "4.0.2", "description": "Base 58 encoding / decoding", "keywords": [ "base58", @@ -23,15 +23,17 @@ "type": "git" }, "files": [ - "./index.js" + "./index.js", + "./index.d.ts" ], "main": "./index.js", + "types": "./index.d.ts", "scripts": { "standard": "standard", "test": "npm run standard && npm run unit", "unit": "tape test/index.js" }, "dependencies": { - "base-x": "^3.0.2" + "base-x": "^3.0.7" } }