Skip to content

Commit

Permalink
Add Typescript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Woodcock committed Jun 23, 2020
1 parent dc05961 commit db7374a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export declare class MessageValidator {
encoding: string;
validate(hash: any, cb: (err: string, message: string) => any);
}
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,6 @@ MessageValidator.prototype.validate = function (hash, cb) {
validateSignature(hash, cb, this.encoding);
};

MessageValidator.MessageValidator = MessageValidator;

module.exports = MessageValidator;

0 comments on commit db7374a

Please sign in to comment.