mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 02:59:11 -05:00
11 lines
480 B
TypeScript
11 lines
480 B
TypeScript
|
declare type Algorithm = {
|
||
|
name: string;
|
||
|
alias: string;
|
||
|
};
|
||
|
declare type Data = string | boolean | number | object | ArrayBufferView | ArrayBuffer | ReadableStream;
|
||
|
export declare const sha256: (data: Data) => Promise<string | null>;
|
||
|
export declare const sha1: (data: Data) => Promise<string | null>;
|
||
|
export declare const md5: (data: Data) => Promise<string | null>;
|
||
|
export declare const createHash: (data: Data, algorithm: Algorithm) => Promise<string | null>;
|
||
|
export {};
|