JSPM

@types/sha.js

2.4.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 138070
  • Score
    100M100P100Q172129F
  • 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

    // Type definitions for sha.js 2.4
    // Project: https://github.com/crypto-browserify/sha.js
    // Definitions by: BendingBender <https://github.com/BendingBender>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <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: Thu, 13 Jul 2023 12:32:46 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by BendingBender.