add typescript support
parent
65b3898c4e
commit
9b8aec9630
@ -0,0 +1,11 @@
|
||||
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 default sha1;
|
Loading…
Reference in New Issue