Installation
npm install --save @types/brorand
Summary
This package contains type definitions for brorand (https://github.com/indutny/brorand).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/brorand.
index.d.ts
/// <reference types="node" />
type rand = { getByte: () => number };
interface RandStatic {
new(rand: rand): RandInstance;
}
interface RandInstance {
rand: rand;
generate(len: number): Buffer | Uint8Array;
}
interface BrorandStatic {
(len: number): Buffer | Uint8Array;
Rand: RandStatic;
}
declare namespace Brorand {}
declare let Brorand: BrorandStatic;
export = Brorand;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
Credits
These definitions were written by Ilya Mochalov.