npm.io
1.0.3 • Published 2 years ago

@types/json-rpc-random-id

Licence
MIT
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/json-rpc-random-id

Summary

This package contains type definitions for json-rpc-random-id (https://github.com/kumavis/json-rpc-random-id#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-rpc-random-id.

index.d.ts

/**
 *  Returns a function that generates a random number
 *  This number is to be used with web3 rpc
 */
declare function IdIterator(options?: {
    max?: number | undefined;
    start?: number | undefined;
}): () => number;

export = IdIterator;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Micah Riggan.