@types/brorand
Version:
TypeScript definitions for brorand
24 lines (16 loc) • 401 B
TypeScript
/// <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;