Skip to content

Commit

Permalink
fix: i need a coffe
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfopietro97 committed Oct 30, 2023
1 parent 115c42a commit 8a574ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/src/hash/helpers/hashhelpers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Checks if the return type is valid
*
* Helper method needed to validate the return type of the hash function
*
* @param value - The return type
* @returns A boolean indicating whether the return type is valid
*/
const isValidReturnType = (value: string): boolean => {
return !(value !== 'buffer' && value !== 'hex');
};

export { isValidReturnType };

0 comments on commit 8a574ff

Please sign in to comment.