JSPM

@types/sha.js

2.4.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 148853
  • Score
    100M100P100Q162281F
  • License MIT

TypeScript definitions for sha.js

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/sha.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/sha.js

    Summary

    This package contains type definitions for sha.js (https://github.com/crypto-browserify/sha.js).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sha.js.

    index.d.ts

    /// <reference types="node" />
    
    import { Hash } from "crypto";
    
    export = SHA;
    
    declare function SHA(algorithm: SHA.Algorithm | Uppercase<SHA.Algorithm>): Hash;
    
    declare namespace SHA {
        type Algorithm = "sha" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512";
        interface HashStatic {
            new(): Hash;
        }
    
        const sha: HashStatic;
        const sha1: HashStatic;
        const sha224: HashStatic;
        const sha256: HashStatic;
        const sha384: HashStatic;
        const sha512: HashStatic;
    }
    

    Additional Details

    • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
    • Dependencies: @types/node

    Credits

    These definitions were written by BendingBender.