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.