DefinitelyTyped/types/json-rpc-random-id/index.d.ts
Micah Riggan 833ffc438b
Adding typings for json-rpc-random-id
Matching dslint

Using declare function

Header is required

Adding a comment

Moving export line

Missing space

Tslint...
2018-11-01 11:46:19 -04:00

15 lines
468 B
TypeScript

// Type definitions for json-rpc-random-id 1.0
// Project: https://github.com/kumavis/json-rpc-random-id#readme
// Definitions by: Micah Riggan <https://github.com/micahriggan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Returns a function that generates a random number
* This number is to be used with web3 rpc
*/
declare function IdIterator(options?: {
max?: number;
start?: number;
}): () => number;
export = IdIterator;