File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ KeyObject = {
3131 include Impl
3232}
3333
34+ type binaryToTextEncoding =
35+ | @as ("base64" ) Base64
36+ | @as ("base64url" ) Base64url
37+ | @as ("hex" ) Hex
38+ | @as ("binary" ) Binary
39+
3440module PivateKey = {
3541 include KeyObject .Impl
3642 type kind = [KeyObject .privateKey ]
@@ -60,6 +66,9 @@ module Hash = {
6066 @send external copy : t => t = "copy"
6167 @send external digest : t => Buffer .t = "digest"
6268 @send external update : (t , Buffer .t ) => unit = "update"
69+ @send external updateString : (t , string ) => t = "update"
70+ @send external updateStringWithEncoding : (t , string , NodeJs .StringEncoding .t ) => t = "update"
71+ @send external digestWithEncoding : (t , binaryToTextEncoding ) => string = "digest"
6372 }
6473 include Impl
6574}
You can’t perform that action at this time.
0 commit comments