Skip to content

Commit

Permalink
Update update() docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Caligatio committed Oct 9, 2022
1 parent 767e16f commit 2c60363
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/sha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ declare class jsSHA {
/**
* Takes `input` and hashes as many blocks as possible. Stores the rest for either a future `update` or `getHash` call.
*
* @param input The input to be hashed
* @param input The input to be hashed.
* @returns A reference to the object.
*/
update(input: string | ArrayBuffer | Uint8Array): this;
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/sha.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sha.mjs.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/sha1.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ declare abstract class jsSHABase<StateT, VariantT> {
* Hashes as many blocks as possible. Stores the rest for either a future update or getHash call.
*
* @param srcString The input to be hashed.
* @returns A reference to the object.
*/
update(srcString: string | ArrayBuffer | Uint8Array): this;
/**
Expand Down
1 change: 1 addition & 0 deletions dist/sha256.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ declare abstract class jsSHABase<StateT, VariantT> {
* Hashes as many blocks as possible. Stores the rest for either a future update or getHash call.
*
* @param srcString The input to be hashed.
* @returns A reference to the object.
*/
update(srcString: string | ArrayBuffer | Uint8Array): this;
/**
Expand Down
1 change: 1 addition & 0 deletions dist/sha3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ declare abstract class jsSHABase<StateT, VariantT> {
* Hashes as many blocks as possible. Stores the rest for either a future update or getHash call.
*
* @param srcString The input to be hashed.
* @returns A reference to the object.
*/
update(srcString: string | ArrayBuffer | Uint8Array): this;
/**
Expand Down
1 change: 1 addition & 0 deletions dist/sha512.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ declare abstract class jsSHABase<StateT, VariantT> {
* Hashes as many blocks as possible. Stores the rest for either a future update or getHash call.
*
* @param srcString The input to be hashed.
* @returns A reference to the object.
*/
update(srcString: string | ArrayBuffer | Uint8Array): this;
/**
Expand Down
1 change: 1 addition & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export abstract class jsSHABase<StateT, VariantT> {
* Hashes as many blocks as possible. Stores the rest for either a future update or getHash call.
*
* @param srcString The input to be hashed.
* @returns A reference to the object.
*/
update(srcString: string | ArrayBuffer | Uint8Array): this {
let i,
Expand Down
3 changes: 2 additions & 1 deletion src/sha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export default class jsSHA {
/**
* Takes `input` and hashes as many blocks as possible. Stores the rest for either a future `update` or `getHash` call.
*
* @param input The input to be hashed
* @param input The input to be hashed.
* @returns A reference to the object.
*/
update(input: string | ArrayBuffer | Uint8Array): this {
this.shaObj.update(input);
Expand Down

0 comments on commit 2c60363

Please sign in to comment.