@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
9 lines • 315 B
TypeScript
/**
* Check if the string is Hash
*
* @param str - The string to check
* @param algorithm - Options object
* @returns True if the string matches the validation, false otherwise
*/
export declare function isHash(str: string, algorithm: HashAlgorithm): boolean;
declare type HashAlgorithm = keyof typeof lengths