Skip to content

Commit

Permalink
Merge pull request #39 from cryptocoinjs/addTypes
Browse files Browse the repository at this point in the history
Add TypeScript types from DefinitelyTyped
  • Loading branch information
junderw authored Feb 17, 2022
2 parents 1f67bbc + d2c8ac7 commit 6816bc7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.DS_Store
coverage/
coverage/
package-lock.json
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { BaseConverter } from 'base-x';

declare const base58: BaseConverter;

export = base58;
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bs58",
"version": "4.0.1",
"version": "4.0.2",
"description": "Base 58 encoding / decoding",
"keywords": [
"base58",
Expand All @@ -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"
}
}

0 comments on commit 6816bc7

Please sign in to comment.