Skip to content

Commit db7374a

Browse files
author
Josh Woodcock
committed
Add Typescript typings
1 parent dc05961 commit db7374a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export declare class MessageValidator {
2+
encoding: string;
3+
validate(hash: any, cb: (err: string, message: string) => any);
4+
}

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,6 @@ MessageValidator.prototype.validate = function (hash, cb) {
213213
validateSignature(hash, cb, this.encoding);
214214
};
215215

216+
MessageValidator.MessageValidator = MessageValidator;
217+
216218
module.exports = MessageValidator;

0 commit comments

Comments
 (0)