@types/keygrip
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Installation

npm install --save @types/keygrip

Summary

This package contains type definitions for keygrip (https://github.com/crypto-utils/keygrip).

Details

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

index.d.ts

interface Keygrip {
    sign(data: any): string;
    verify(data: any, digest: string): boolean;
    index(data: any, digest: string): number;
}

interface KeygripFunction {
    new(keys: readonly string[], algorithm?: string, encoding?: string): Keygrip;
    (keys: readonly string[], algorithm?: string, encoding?: string): Keygrip;
}

declare const Keygrip: KeygripFunction;

export = Keygrip;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

These definitions were written by jKey Lu.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.6
    908,681
  • 1.0.5
    36,174
  • 1.0.4
    43,487
  • 1.0.3
    71,251
  • 1.0.2
    778,166
  • 1.0.1
    61,707
  • 1.0.0
    1

Package Sidebar

Install

npm i @types/keygrip

Weekly Downloads

1,899,467

Version

1.0.6

License

MIT

Unpacked Size

3.3 kB

Total Files

5

Last publish

Collaborators

  • types