add typings

pull/10/head
Hugo LEHMANN 8 years ago committed by GitHub
parent ee3b3869bc
commit e06a6975ca

11
index.d.ts vendored

@ -0,0 +1,11 @@
/**
* Returns the SHA-256 hash of `message` as an hexadecimal string.
* @param message The message to hash
*/
export function sha256(message: string | ArrayLike<number> | Uint8Array | ArrayBuffer): string;
/**
* Returns the SHA-224 hash of `message` as an hexadecimal string.
* @param message The message to hash
*/
export function sha224(message: string | ArrayLike<number> | Uint8Array | ArrayBuffer): string;
Loading…
Cancel
Save