Installation
npm install --save @types/create-hmac
Summary
This package contains type definitions for create-hmac (https://github.com/crypto-browserify/createHmac).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-hmac.
index.d.ts
/// <reference types="node" />
import { Hmac } from "crypto";
export = createHmac;
declare function createHmac(algo: createHmac.Algorithm, key: string | Buffer): Hmac;
declare namespace createHmac {
type Algorithm =
| "rmd160"
| "ripemd160"
| "md5"
| "sha"
| "sha1"
| "sha224"
| "sha256"
| "sha384"
| "sha512";
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
Credits
These definitions were written by BendingBender.