Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
607 B
Plaintext
20 lines
607 B
Plaintext
import { RestCommand } from "../../types.js";
|
|
|
|
//#region src/rest/commands/utils/hash.d.ts
|
|
|
|
/**
|
|
* Generate a hash for a given string.
|
|
* @param string String to hash.
|
|
* @returns Hashed string.
|
|
*/
|
|
declare const generateHash: <Schema>(string: string) => RestCommand<string, Schema>;
|
|
/**
|
|
* Verify a string with a hash.
|
|
* @param string Source string.
|
|
* @param hash Hash you want to verify against.
|
|
* @returns Boolean.
|
|
*/
|
|
declare const verifyHash: <Schema>(string: string, hash: string) => RestCommand<boolean, Schema>;
|
|
//#endregion
|
|
export { generateHash, verifyHash };
|
|
//# sourceMappingURL=hash.d.ts.map |