You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
394 B
TypeScript
11 lines
394 B
TypeScript
declare function sha1<T>(dest: string | Array<T> | ArrayBuffer | Uint8Array): string;
|
|
|
|
declare namespace sha1 {
|
|
export function hex(arg: string): string;
|
|
export function update<T>(arg: string | Array<T> | Uint8Array | ArrayBuffer): string;
|
|
export function array(): Uint8Array;
|
|
export function digest(): Uint8Array;
|
|
export function arrayBuffer(): ArrayBuffer;
|
|
}
|
|
|
|
export=sha1; |