@types/js-sha1
Version:
TypeScript definitions for js-sha1
37 lines (28 loc) • 1.06 kB
Markdown
# Installation
> `npm install --save @types/js-sha1`
# Summary
This package contains type definitions for js-sha1 (https://github.com/emn178/js-sha1).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-sha1.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-sha1/index.d.ts)
````ts
interface JsSha1Prototype {
update(message: string | ArrayBufferLike): JsSha1Prototype;
hex(message?: string): string;
array(message?: string): number[];
digest(message?: string): number[];
arrayBuffer(message?: string): ArrayBuffer;
}
interface JsSha1 extends JsSha1Prototype {
(message: string | Uint8Array | ArrayBuffer | Array<number>): string;
create(): JsSha1Prototype;
}
declare var sha1: JsSha1;
export = sha1;
export as namespace sha1;
````
### Additional Details
* Last updated: Tue, 19 Nov 2024 10:37:30 GMT
* Dependencies: none
# Credits
These definitions were written by [Igor N. Dultsev](https://github.com/yhaskell).