UNPKG

1.04 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/brorand`
3
4# Summary
5This package contains type definitions for brorand (https://github.com/indutny/brorand).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/brorand.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/brorand/index.d.ts)
10````ts
11/// <reference types="node" />
12
13type rand = { getByte: () => number };
14
15interface RandStatic {
16 new(rand: rand): RandInstance;
17}
18
19interface RandInstance {
20 rand: rand;
21 generate(len: number): Buffer | Uint8Array;
22}
23
24interface BrorandStatic {
25 (len: number): Buffer | Uint8Array;
26 Rand: RandStatic;
27}
28
29declare namespace Brorand {}
30
31declare let Brorand: BrorandStatic;
32
33export = Brorand;
34
35````
36
37### Additional Details
38 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
39 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
40
41# Credits
42These definitions were written by [Ilya Mochalov](https://github.com/chrootsu).
43
\No newline at end of file